things
39 subscribers
28 photos
13 videos
10 files
7 links
random 4 u
Download Telegram
SANS Digital Forensic Poster.pdf
1.4 MB
Digital forensics poster:
you can freely parse FFox .sqlite bookmarks from linux terminal:

sqlite3 ./173iv6vo.default-release/places.sqlite .dump |grep youtube.com



where
173iv6vo.default-release

your FFox profile on the system

you can use
find . -name *.sqlite
to figureout all FFox sqlites
a very nice way to filter HTML or /and output to console:
links -codepage utf-8 -force-html -width 400 -dump /dev/stdin


or
links -codepage utf-8 -force-html -width 400 -dump /path/to/html/file.html
a fast way to get serial (and others things from udev):

udevadm info --query=all -n /dev/sda
FFmpeg near precision way to cut video (pt1):

ffmpeg -i planes.mkv -ss 00:00:05.000 -t 00:00:05.500 plane0505_recode.mkv


check timing by:
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 plane0505_recode.mkv
FFmpeg stress test:
(it will load all cpus)

ffmpeg -y -f rawvideo -video_size 1920x1080 -pixel_format yuv420p -framerate 60 -i /dev/urandom -c:v libx265 -preset placebo -f matroska /dev/null
Random noise from /dev/urandom:

ffmpeg -f rawvideo -pixel_format rgb24 -video_size 1920x1080 -framerate 120 -i /dev/urandom -c:v libx264 -preset ultrafast -pix_fmt yuv420p output.mp4


Keep eye on filesize.
Remnants of a bygone era
FFMPEG

Convert image IN.png to RAW RGB565 format:

ffmpeg -vcodec png -i IN.png -vcodec rawvideo -f rawvideo -pix_fmt rgb565 OUT.raw
linux system calls with just the python
standard library:
import ctypes
ctypes.CDLL(None).syscall(39)
#
python -c '__import__("ctypes").CDLL(None).syscall(1,1,b"Haiiiiii",8)'
LaTeX to PDF conversion:

tectonic invoice10.tex


(tectonic util will download deps automatically )
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | sed 1000000000q |aplay

cat /dev/urandom | tr -dc '0-9' | fold -w 10 | sed 1000000000q |aplay

cat /dev/urandom | tr -dc '0-9' | fold -w 10 | sed 1000000000q |aplay



cat /dev/urandom | tr -dc '&*(&(^)' | fold -w 10 | sed 1000000000q |aplay

cat /dev/urandom | tr -dc '&*(&(^)' | fold -w 10 | sed 1000000000q |aplay

cat /dev/urandom | tr -dc '~`!@#$%^&*()' | fold -w 1 | sed 1000000000q |aplay

cat /dev/urandom | tr -dc "0-9a-z" |aplay

cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 |aplay -r 192000
Linux processes list and their capabilities:
pscap | less

(libcap-ng)
try to scale this
Lxc clean snapshots scripts:
lxc info tor-jschan

echo "^^^^^^^^^^^BEFORE^^^^^^^^^^^^\n\n\n"

container_name="tor-jschan"

snapshots=$(lxc info $container_name | awk '/^\|/ {print $2}' | head -n -1)
for snapshot in $snapshots; do
lxc delete $container_name/$snapshot
done


echo "------------AFTER:-------------\n\n\n\"

lxc info tor-jschan
Video registrator DS-7104HQHI-K1

could be "hacked" trough rs232:

default command to get pass:
getHardInfo

operationCode=password
FFMPEG TIME:

Trim the First 5 Seconds of the Audio and Combine with Video (will be silenced 5 sec):
ffmpeg -i "VIDEO.mkv" -i "AUDIO.flac" -c:v libx264 -c:a aac -map 0:v -map 1:a -af "atrim=start=5" -shortest "output_with_shifted_audio.mp4"


Remove Original Audio, Add New Audio, and Shift the Audio Forward by 5 Seconds (same as before):
ffmpeg -i "VIDEO.mkv" -i "AUDIO.flac" -c:v libx264 -c:a aac -map 0:v -map 1:a -shortest -af "adelay=5000|5000" "output_with_shifted_audio.mp4"


Just add audio to video (with replacing original audio):
ffmpeg -i "VIDEO.mkv" -i "AUDIO.mp3" -c:v libx264 -c:a aac -map 0:v -map 1:a -shortest "output_with_new_audio.mp4"











Finally shift auido properly for 5 sec. without silence:



ffmpeg -i "AUDIO.mkv" -i "VIDEO.mp3" -filter_complex "[0:v]trim=start=0,setpts=PTS-STARTPTS[v];[1:a]atrim=start=5,asetpts=PTS-STARTPTS[a];[v][a]concat=n=1:v=1:a=1[vout][aout]" -map "[vout]" -map "[aout]" -c:v libx264 -c:a aac -shortest "output_with_shifted_audio.mp4"