Пропускане към основното съдържание

compressing_and+decompressing-file&size()without_damage_export*of*large*file*into*a*small*place





# make 1G txt data file
dd if=/dev/zero of=data.txt bs=1M count=1024

# compress with tools
gzip -c data.txt > data.txt.gz
tar -cf data.txt.tar data.txt
xz -zk data.txt
7za a -t7z data.txt.7z data.txt

# compress with bzip2
bzip2 -zk data.txt

# make unlimited size bzip2 archive (3GB in this case)
dd if=/dev/zero bs=1G count=3 | bzip2 -c > fun.bz2

# start extracting that file
bzip2 -d fun.bz2

#########################################
# nu11secur1ty - test

# Make 3G file for test
dd if=/dev/zero bs=1MB count=3000 | bzip2 -c > fun.txt.bz2

# start extracting that file
bzip2 -d fun.txt.bz2

------------------------------------------

#Manual
# make 4MB txt data file
dd if=/dev/zero of=fun.txt bs=4MB count=1

# make bzip2 archive
bzip2 fun.txt

# chech the size after compress
du -h fun.txt

# start extracting that file
bzip2 -d fun.txt.bz2


Коментари

Popular Posts

CVE-2021-44228

REPRODUCE OF THE VULNERABILITY =): Collaboration: silentsignal

CVE-2022-21907

Donate if you are not shame!

DVWA - Brute Force (High Level) - Anti-CSRF Tokens

This is the final "how to" guide which brute focuses Damn Vulnerable Web Application (DVWA), this time on the high security level. It is an expansion from the "low" level (which is a straightforward HTTP GET form attack). The main login screen shares similar issues (brute force-able and with anti-CSRF tokens). The only other posting is the "medium" security level post (which deals with timing issues). For the final time, let's pretend we do not know any credentials for DVWA.... Let's play dumb and brute force DVWA... once and for all! TL;DR: Quick copy/paste 1: CSRF=$(curl -s -c dvwa.cookie "192.168.1.44/DVWA/login.php" | awk -F 'value=' '/user_token/ {print $2}' | cut -d "'" -f2) 2: SESSIONID=$(grep PHPSESSID dvwa.cookie | cut -d $'\t' -f7) 3: curl -s -b dvwa.cookie -d "username=admin&password=password&user_token=${CSRF}&Login=Login" "192.168.1