Devblog Beeper script (Beeps when devblog gets released!)
7 replies, posted
Yo, decided to simplify my rust life by writing an checking script for the new devblog. It beeps when your desired devblog gets released. It's kind of hacked and programmed sorta bad. Deal with it. It does its job ;)
(Windows only)
Pastebin source code: [url]http://pastebin.com/inXT1WfV[/url]
Download (compiled to .exe): [url]http://www.mediafire.com/download/x4ruuh2txmr5rmb/rustdevblogbeeper.exe[/url] (The big filesize is caused by using python as programming language for this program)
Download source code: [url]http://www.mediafire.com/view/jb3ed4qodfdnpuo/rustdevblogbeeper.py[/url]
Compiled on Win 10 using pyinstaller 2.0
Fucked up something xD Wait for new links plz
[editline]7th January 2016[/editline]
At the moment: It doesn't work because playrust.com is unavailable! :( But when its up again it will work if they dont change the url name system.
.... Obviously a virus. Why would anyone bother to make such a thing.
[QUOTE=Poppadomus;49478313].... Obviously a virus. Why would anyone bother to make such a thing.[/QUOTE]
I pasted the source code. Install the Python IDE and compile it by urself! I know it's sorta "suspicous" xD
You pasted the source code but I'm going to say this, probably like 98% of the people on this forum cannot understood what the source code does.
[QUOTE=Poppadomus;49478375]You pasted the source code but I'm going to say this, probably like 98% of the people on this forum cannot understood what the source code does.[/QUOTE]
don't hate just ignore if you are not interested
[QUOTE=Poppadomus;49478313].... Obviously a virus. Why would anyone bother to make such a thing.[/QUOTE]
[QUOTE=Poppadomus;49478375]You pasted the source code but I'm going to say this, probably like 98% of the people on this forum cannot understood what the source code does.[/QUOTE]
But why are you labeling it a virus? If you can't have a look yourself then there's no point saying 'obviously a virus'
You don't exactly need to be an expert programmer to tell that there isn't much dodgy going on here:
[code]from winsound import Beep
from time import sleep
from urllib2 import urlopen
print("\nWritten by tomba. I am ashamed of it ^^\n")
print("Gimme that devblog <3")
devnr = raw_input("\nWhich Devblog are you waiting for? (Number) :")
while True:
sleep(1)
try:urlopen("http://playrust.com/devblog-"+str(devnr))
except:
continue
while True:
Beep(2000,200)
sleep(0.3)[/code]
Also if something like this was actually widely used, it'd be better to have the delay set to a much higher value (30s-1m), having people send requests to the server every second for something that isn't exactly that time critical is a little much.
[QUOTE=Cushie;49478395]
Also if something like this was actually widely used, it'd be better to have the delay set to a much higher value (30s-1m), having people send requests to the server every second for something that isn't exactly that time critical is a little much.[/QUOTE]
I was just about to say the same thing. And it is every 0.3 seconds. That is going to be 3 times per second... Obviously a ddos
LOL :D it is really recognized as a virus by one antivirus xD [url]https://www.virustotal.com/de/file/e4dc244504a2a97cb695cb7fb1048325471a285996d1e10c4cbc2b56a291713d/analysis/1452195645/[/url]
The source code:
L1: [I][U]from winsound import Beep[/U][/I] # That gets the thing which it needs to beep ^^
L2:[I][U] from time import sleep[/U][/I] # Import a function which tells the program to pause a moment to not work too fast
L3:[I][U] from urllib2 import urlopen[/U][/I] # Imports the thing which is requested to check for the new devblog
L4: [U][I]print...[/I][/U]
L5: [I][U]print..[/U][/I]. L4&L5 throw some output to your program window :D
L6: [U][I]devnr = raw_input("\nWhich Devblog are you waiting for? (Number) :")[/I][/U] # asks for the devblogs number
L7: [I][U]while True[/U][/I]: # do repeatedly
L8: [I][U]sleep(1)[/U][/I] # Dont work too fast!
L9 [I][U]try:[/U][/I] # Tells the pc that it will try something but it prob. fails and tells him how to handle the fail
L10: [U][I]urlopen("http://playrust.com/devblog-"+str(devnr))[/I][/U] # Checks for your desired download
L11: [I][U]except:[/U][/I] # Except the fail i told you about
L12: [I][U]continue[/U][/I] # jumps to L7
L13: [U][I]while True[/I][/U]: #do repeatedly
L14: [U][I]Beep(2000,200)[/I][/U] #Generates a peeep noise
L15: [I][U]sleep(0.3)[/U][/I] # Dont work too fast!
I understand you mate. You play rust you dont trust ppl ^^ but this one is just for fun and helping out :D
[editline]7th January 2016[/editline]
[QUOTE=utilitron;49478444]I was just about to say the same thing. And it is every 0.3 seconds. That is going to be 3 times per second... Obviously a ddos[/QUOTE]
Obviously a DDoS? :D What do you want to tell me with that?
[editline]7th January 2016[/editline]
[QUOTE=utilitron;49478444]I was just about to say the same thing. And it is every 0.3 seconds. That is going to be 3 times per second... Obviously a ddos[/QUOTE]
The send request loop is timed 1 sec. Only the beep loop is 0.3 secs
[editline]7th January 2016[/editline]
[QUOTE=Cushie;49478395]But why are you labeling it a virus? If you can't have a look yourself then there's no point saying 'obviously a virus'
You don't exactly need to be an expert programmer to tell that there isn't much dodgy going on here:
[code]from winsound import Beep
from time import sleep
from urllib2 import urlopen
print("\nWritten by tomba. I am ashamed of it ^^\n")
print("Gimme that devblog <3")
devnr = raw_input("\nWhich Devblog are you waiting for? (Number) :")
while True:
sleep(1)
try:urlopen("http://playrust.com/devblog-"+str(devnr))
except:
continue
while True:
Beep(2000,200)
sleep(0.3)[/code]
Also if something like this was actually widely used, it'd be better to have the delay set to a much higher value (30s-1m), having people send requests to the server every second for something that isn't exactly that time critical is a little much.[/QUOTE]
Yep. But I didnt think about tons of ppl using it :D and you want to get that cheeky 29 seconds headstart ^^
Sorry, you need to Log In to post a reply to this thread.