mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2025-09-02 01:58:33 +02:00
Dropped a bunch of various scripts.
This commit is contained in:
@ -5,4 +5,6 @@
|
||||
|
||||
- **`encrypt.rb`** - Simple File Encryption utility (with support for Blowfish, GOST, IDEA, AES) capable of encrypting directories. ([gist](https://gist.github.com/mgeeky/751c01c4dac99871f4da))
|
||||
|
||||
- **`xor-key-recovery.py`** - Simple XOR brute-force Key recovery script - given a cipher text, plain text and key length - it searches for proper key that could decrypt cipher into text. ([gist](https://gist.github.com/mgeeky/589b2cf781901288dfea0894a780ff98))
|
||||
- **`playRTPStream.sh`** - Using rtpdump to play RTP streams from PCAP files with VLC. This script was useful to extract RTP Streams from sniffed VoIP communication and then with a help of VLC to dump those streams into valid .wav files. (https://github.com/hdiniz/rtpdump). [gist](https://gist.github.com/mgeeky/0b8bd81a3f6fb70eec543bc0bae2f079)
|
||||
|
||||
- **`xor-key-recovery.py`** - Simple XOR brute-force Key recovery script - given a cipher text, plain text and key length - it searches for proper key that could decrypt cipher into text. ([gist](https://gist.github.com/mgeeky/589b2cf781901288dfea0894a780ff98))
|
||||
|
45
others/playRTPStream.sh
Normal file
45
others/playRTPStream.sh
Normal file
@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
rtpdump_bin=/home/user/tools/rtpdump/rtpdump
|
||||
|
||||
if (( $# < 2 )); then
|
||||
echo
|
||||
echo This script tries to extract RTP streams from PCAP file using
|
||||
echo https://github.com/hdiniz/rtpdump
|
||||
echo utility and passing that stream to VLC player, or to output file.
|
||||
echo
|
||||
#echo "Usage: playStream.sh <file> <streamNum> [outfile]"
|
||||
echo "Usage: playStream.sh <file> <streamNum>"
|
||||
echo
|
||||
echo " file - pcap file to process."
|
||||
echo " streamNum - number of stream to play, or '-l' to list them."
|
||||
#echo " outfile - (optional) path to output file where to dump that stream."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
file=$1
|
||||
num=$2
|
||||
vlc_bin=cvlc
|
||||
|
||||
if [ "$num" == "-l" ]; then
|
||||
$rtpdump_bin streams $file
|
||||
else
|
||||
|
||||
if (( $# > 2 )); then
|
||||
echo "[ERROR] Not implemented at the moment."
|
||||
#outfile=$3
|
||||
#echo "[Step 1]: Dumping RTP stream ($num) to file ($outfile)"
|
||||
#nc -nlp 4444 127.0.0.1 > $outfile &
|
||||
#echo $num | $rtpdump_bin play --host 0.0.0.0 --port 4444 $file > /dev/null
|
||||
#echo "[Step 2]: File: $outfile written."
|
||||
else
|
||||
echo "[Step 1]: Starting VLC on 0.0.0.0:4444"
|
||||
$vlc_bin rtp://@0.0.0.0:4444 2> /dev/null &disown;
|
||||
|
||||
echo "[Step 2]: Playing RTP stream ($num) on 0.0.0.0:4444"
|
||||
echo $num | $rtpdump_bin play --host 0.0.0.0 --port 4444 $file > /dev/null
|
||||
|
||||
pkill vlc
|
||||
fi
|
||||
fi
|
Reference in New Issue
Block a user