Skip to content

Instantly share code, notes, and snippets.

@breyer
Created March 2, 2021 09:22
Show Gist options
  • Save breyer/2bca7d8535de785db67e95cf07e98f53 to your computer and use it in GitHub Desktop.
Save breyer/2bca7d8535de785db67e95cf07e98f53 to your computer and use it in GitHub Desktop.
Getting ssh access to HITRON cable modem
#!/bin/bash
#HITRON=10.10.2.1
HITRON=192.168.100.1
USER=app
PASSWORD="com8&#wDs2*1er"
OPTIONS="-o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ServerAliveInterval=5 -o ServerAliveCountMax=1"
echo Password of $USER $PASSWORD
while [ 1 ]
do
echo connect...
sshpass -p$PASSWORD ssh $OPTIONS $USER@$HITRON $1
done
@tomekszy
Copy link

Hi, i have Hitron modem, how can I use your script to get access to it? I alwq6s get connection refused error...

@breyer
Copy link
Author

breyer commented Mar 28, 2022

Hi, i have Hitron modem, how can I use your script to get access to it? I alwq6s get connection refused error...

This will only succeed immediately after boot. Maybe you loop the script to login.

@tomekszy
Copy link

Ok, and do I login with my 'normal' password? This one that I log in to web panel? Maybe it is possible to connect to router when it is disconnected from cable network? (when docsis manifest could not be downloaded from cable tv network)

@breyer
Copy link
Author

breyer commented Mar 28, 2022

Ok, and do I login with my 'normal' password? This one that I log in to web panel? Maybe it is possible to connect to router when it is disconnected from cable network? (when docsis manifest could not be downloaded from cable tv network)

Hint: https://www.hackerboard.de/threads/hitronhub-cve-30360-kabel-deutschland-wlan-hack.46171/page-4

@tomekszy
Copy link

Ok, I will check if this works with my router. And in short, what can I change in modem behaviour when I log into ssh to it? What are the possibilities?

@breyer
Copy link
Author

breyer commented Mar 29, 2022

If I remember correctly, this allowed the WLAN to be activated when it was deactivated by the provider.

@compcold
Copy link

compcold commented Dec 3, 2023

Hi there,

To get the script to work with OpenSSH_9.5p1, I needed to add a couple options:

OPTIONS="-o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss ... "

Also needed to un-comment this line in /etc/ssh_config
#Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aex128-cbc,3des-cbc

Thanks for the script, has been super helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment