Łamanie haseł UPC WiFi

Jakiś czas temu zauważyłem że na niektórych routerach UPC standardowe hasło jest złożone z bardzo prostego zestawu znaków tzn. 8 samych dużych liter. Chciałem sobie trochę ułatwić sprawę i wygenerować słownik tym oto kodem:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import itertools
sourceGenerate = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
with open( 'wordsList.txt' , 'w' ) as filePointer:
for generatedString in itertools.product( sourceGenerate , repeat = 8 ):
filePointer.write( ''.join( generatedString ) + '\n' )
#! /usr/bin/env python # -*- coding: utf-8 -*- import itertools sourceGenerate = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; with open( 'wordsList.txt' , 'w' ) as filePointer: for generatedString in itertools.product( sourceGenerate , repeat = 8 ): filePointer.write( ''.join( generatedString ) + '\n' )
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import itertools

sourceGenerate = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';

with open( 'wordsList.txt' , 'w' ) as filePointer:
for generatedString in itertools.product( sourceGenerate , repeat = 8 ):
filePointer.write( ''.join( generatedString ) + '\n' )
a następnie użyć tego do łamania haseł tym
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import itertools
import sys
import wifi
if len( sys.argv ) < 3:
print( 'Usage ' + sys.argv[ 0 ] + ' <interface> <ssid>' )
exit()</ssid></interface>
sourceGenerate = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
repeatAmount = 8
amountMax = len( sourceGenerate ) ** repeatAmount
currentAmount = 0
for generatedString in itertools.product( sourceGenerate , repeat = repeatAmount ):
generatedString = ''.join( generatedString )
sys.stdout.write( '%f\r' % ( ( float( currentAmount ) / float( amountMax ) ) * 100.0 ) )
sys.stdout.flush()
currentAmount = currentAmount + 1
#! /usr/bin/env python # -*- coding: utf-8 -*- import itertools import sys import wifi if len( sys.argv ) < 3: print( 'Usage ' + sys.argv[ 0 ] + ' <interface> <ssid>' ) exit()</ssid></interface> sourceGenerate = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; repeatAmount = 8 amountMax = len( sourceGenerate ) ** repeatAmount currentAmount = 0 for generatedString in itertools.product( sourceGenerate , repeat = repeatAmount ): generatedString = ''.join( generatedString ) sys.stdout.write( '%f\r' % ( ( float( currentAmount ) / float( amountMax ) ) * 100.0 ) ) sys.stdout.flush() currentAmount = currentAmount + 1
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import itertools
import sys
import wifi

if len( sys.argv ) < 3:
	print( 'Usage ' + sys.argv[ 0 ] + '  ' )
exit()

sourceGenerate = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
repeatAmount = 8

amountMax = len( sourceGenerate ) ** repeatAmount
currentAmount = 0

for generatedString in itertools.product( sourceGenerate , repeat = repeatAmount ):
generatedString = ''.join( generatedString )

sys.stdout.write( '%f\r' % ( ( float( currentAmount ) / float( amountMax ) )  * 100.0 ) )
sys.stdout.flush()

currentAmount = currentAmount + 1
Projektu nie dokończyłem zresztą po co skoro mamy aircrack-ng 😛 http://www.aircrack-ng.org/

Dodaj komentarz

This site uses Akismet to reduce spam. Learn how your comment data is processed.