-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathVBSDunihiUninstaller.py
More file actions
53 lines (45 loc) · 1.74 KB
/
Copy pathVBSDunihiUninstaller.py
File metadata and controls
53 lines (45 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#-------------------------------------------------------------------------------
# Name: Dunihi Remote Malware Uninstaller
# Purpose: This script is a remote VBS.Dunihi Malware Uninstaller.
# It is a small web server that will replace the Dunihi C&C server
# in order to uninstall the malware from the infected systems.
#
# Author: Ptr32Void
#
# Date: 14/08/2014
#-------------------------------------------------------------------------------
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
import string
import sys
http_port= 80
class httpdHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-type','text/html')
self.end_headers()
self.wfile.write("GET handler...")
return
def do_POST(self):
self.send_response(200)
self.end_headers()
ua = str(self.headers['user-agent'])
dunihi_data = ua.split('<|>')
print '[!] Dunihi requested operation %s' % (self.path)
print '[!] Infected PC name: %s' % (dunihi_data[1])
print '[!] Infected PC UserName: %s' % (dunihi_data[2])
print '[!] Infected PC OS: %s' % (dunihi_data[3])
if ( self.path.find('is-ready') != -1):
print '[!] Dunihi malware ready, sending uninstall command...'
self.wfile.write("uninstall")
print '[+] Uninstall command sent!'
return
def main():
try:
server = HTTPServer(('', http_port), httpdHandler)
print '[+] Dunihi HTTPd server started'
server.serve_forever()
except KeyboardInterrupt:
print 'CTRL+C, shutting down the server'
server.socket.close()
if __name__ == '__main__':
main()