If I write a keylogger in python and it is meant to run on a windows computer will it still run on a imac computer....I am stuck between almost being positive that it won't but I am not sure....and if not what modules will I need to make it run on a mac computer??? thank you
Forum Thread: Keylogger?
- Hot
- Active
-
Forum Thread: Whatsapp Hack? 16 Replies
22 hrs ago -
Forum Thread: How to Track Who Is Sms Bombing Me . 4 Replies
2 mo ago -
Forum Thread: Removing Pay-as-You-Go Meter on Loan Phones. 1 Replies
2 mo ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 3 Replies
2 mo ago -
Forum Thread: moab5.Sh Error While Running Metasploit 17 Replies
3 mo ago -
Forum Thread: Execute Reverse PHP Shell with Metasploit 1 Replies
5 mo ago -
Forum Thread: Install Metasploit Framework in Termux No Root Needed M-Wiz Tool 1 Replies
5 mo ago -
Forum Thread: Hack and Track People's Device Constantly Using TRAPE 35 Replies
6 mo ago -
Forum Thread: When My Kali Linux Finishes Installing (It Is Ready to Boot), and When I Try to Boot It All I Get Is a Black Screen. 8 Replies
7 mo ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
7 mo ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
8 mo ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
9 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
9 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
10 mo ago -
Forum Thread: How to Hack Android Phone Using Same Wifi 21 Replies
10 mo ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 177 Replies
10 mo ago -
How to: Crack Instagram Passwords Using Instainsane 36 Replies
10 mo ago -
Forum Thread: How to Hack an Android Device Remotely, to Gain Acces to Gmail, Facebook, Twitter and More 5 Replies
10 mo ago -
Forum Thread: How Many Hackers Have Played Watch_Dogs Game Before? 13 Replies
10 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
11 mo ago
-
How To: Find Passwords in Exposed Log Files with Google Dorks
-
How To: Hack WPA & WPA2 Wi-Fi Passwords with a Pixie-Dust Attack Using Airgeddon
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
How To: Crack Password-Protected Microsoft Office Files, Including Word Docs & Excel Spreadsheets
-
How To: Use Kismet to Watch Wi-Fi User Activity Through Walls
-
How To: Spy on Traffic from a Smartphone with Wireshark
-
How To: Dox Anyone
-
How To: Exploit EternalBlue on Windows Server with Metasploit
-
Become an Elite Hacker Part 4: Hacking a Website. [Part 1]
-
How To: Escape Restricted Shell Environments on Linux
-
How To: Wardrive with the Kali Raspberry Pi to Map Wi-Fi Devices
-
How To: Fix Bidirectional Copy/Paste Issues for Kali Linux Running in VirtualBox
-
How To: Write an XSS Cookie Stealer in JavaScript to Steal Passwords
-
How To: Hack Like It's 1987 (An Introduction to the Telehack Retro Game)
-
How To: Advanced Techniques to Bypass & Defeat XSS Filters, Part 1
-
How To: Hack Coin-Operated Laudromat Machines for Free Wash & Dry Cycles
-
How To: Haunt a Computer with SSH
-
How To: Bypass Windows Passwords Part 1
-
How Null Byte Injections Work: A History of Our Namesake
-
How To: Securely Sniff Wi-Fi Packets with Sniffglue
4 Responses
Windows uses the PE file format which is not supported by Mac's OS. You will need to compile it to a suitable binary format which OS X can use.
But python is an interpreted language, not compiled. However, it still would most likely not work because the feasible way of collecting keylogging would be to use a python module designed specifically for an OS's interface, and certainly Windows and OS X have completely different APIs for keyboard/HID events.
BUUTTT.... what OP could do is to write a function that collects keystrokes by first determining which OS is being used and then based on that information, proceed to use the appropriate API to capture keyboard events. For example, you could have something like this:
import os
def get_key():
if os.name == 'darwin': # darwin is the OS that OS X is built on
* put code here for recording keystrokes in OS X *
elif os.name == 'nt' # windows
* put code here for recording keystrokes in Windows *
I assumed he was building an executable for Windows using py2exe or similar.
thank you
Share Your Thoughts