Capture SMTP Email
tcpdump -nn -l port 25 | grep -i 'MAIL FROM\|RCPT TO'
Extract HTTP Passwords in POST Requests
tcpdump -s 0 -A -n -l | egrep -i "POST /|pwd=|passwd=|password=|Host:"
Capture FTP Credentials and Commands
| #!/usr/bin/env python3 | |
| import sys | |
| import signal | |
| import os | |
| import json | |
| import re | |
| import argparse | |
| import configparser | |
| import pathlib |
| #include <ArduinoModbus.h> | |
| // How often (in milliseconds) the sensors will be read. | |
| const unsigned long REPORT_INTERVAL = 1000; | |
| void setup() { | |
| Serial.begin(9600); | |
| while(!Serial); | |
| if (!ModbusRTUClient.begin(9600)) { |
| #!/bin/bash | |
| # Script to Auto Update Plex on Synology NAS | |
| # | |
| # Must be run as root. | |
| # | |
| # @author Martino https://forums.plex.tv/u/Martino | |
| # @see https://forums.plex.tv/t/script-to-auto-update-plex-on-synology-nas-rev4/479748 | |
| mkdir -p /tmp/plex/ |
Capture SMTP Email
tcpdump -nn -l port 25 | grep -i 'MAIL FROM\|RCPT TO'
Extract HTTP Passwords in POST Requests
tcpdump -s 0 -A -n -l | egrep -i "POST /|pwd=|passwd=|password=|Host:"
Capture FTP Credentials and Commands
| private string ConvertStringToUtf8Bom(string source) { | |
| var data = Encoding.UTF8.GetBytes(source); | |
| var result = Encoding.UTF8.GetPreamble().Concat(data).ToArray(); | |
| var encoder = new UTF8Encoding(true); | |
| return encoder.GetString(result); | |
| } |
This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory:
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |