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: 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
2 wks ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
3 wks ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 2 Replies
1 mo ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
1 mo ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
3 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
3 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
3 mo ago -
Forum Thread: How to Hack Android Phone Using Same Wifi 21 Replies
3 mo ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 177 Replies
3 mo ago -
How to: Crack Instagram Passwords Using Instainsane 36 Replies
3 mo ago -
Forum Thread: How to Hack an Android Device Remotely, to Gain Acces to Gmail, Facebook, Twitter and More 5 Replies
4 mo ago -
Forum Thread: How Many Hackers Have Played Watch_Dogs Game Before? 13 Replies
4 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
5 mo ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 10 Replies
5 mo ago -
Forum Thread: How to Run and Install Kali Linux on a Chromebook 18 Replies
6 mo ago -
Forum Thread: How to Find Admin Panel Page of a Website? 13 Replies
6 mo ago -
Forum Thread: can i run kali lenux in windows 10 without reboting my computer 4 Replies
7 mo ago -
Forum Thread: How to Hack School Website 11 Replies
7 mo ago -
Forum Thread: Make a Phishing Page for Harvesting Credentials Yourself 8 Replies
7 mo ago -
Forum Thread: Creating an Completely Undetectable Executable in Under 15 Minutes! 38 Replies
8 mo ago
-
How To: Crack SSH Private Key Passwords with John the Ripper
-
How To: Use Burp & FoxyProxy to Easily Switch Between Proxy Settings
-
How To: Enumerate SMB with Enum4linux & Smbclient
-
BT Recon: How to Snoop on Bluetooth Devices Using Kali Linux
-
How To: Crack Shadow Hashes After Getting Root on a Linux System
-
How to Hack Wi-Fi: Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How To: Find Identifying Information from a Phone Number Using OSINT Tools
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
How To: Perform Advanced Man-in-the-Middle Attacks with Xerosploit
-
How To: Automate Wi-Fi Hacking with Wifite2
-
Tutorial: Create Wordlists with Crunch
-
How To: Hack Apache Tomcat via Malicious WAR File Upload
-
How To: Stealthfully Sniff Wi-Fi Activity Without Connecting to a Target Router
-
How To: Write an XSS Cookie Stealer in JavaScript to Steal Passwords
-
How To: Exploit Shellshock on a Web Server Using Metasploit
-
How To: Use MinGW to Compile Windows Exploits on Kali Linux
-
How To: Intercept Images from a Security Camera Using Wireshark
-
Hack Like a Pro: How to Get Facebook Credentials Without Hacking Facebook
-
How To: Hack Computers Over Wi-Fi with the WiFi Duck Payload Deliverer
-
How To: Dox Anyone
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