Skip to content

Instantly share code, notes, and snippets.

@aashishrbhandari
Created October 24, 2021 10:04
Show Gist options
  • Save aashishrbhandari/5d57864a2e896ea8a4afd106ae0bac6d to your computer and use it in GitHub Desktop.
Save aashishrbhandari/5d57864a2e896ea8a4afd106ae0bac6d to your computer and use it in GitHub Desktop.
# Linux CLI Quicky
echo -n "Ashish" | md5sum | cut -d" " -f1
# Python Quicky One
python3 -c 'import hashlib; print(hashlib.md5(b"Ashish").hexdigest())'
# LDAP
ldapsearch -x -h 127.0.0.1 -b "dc=domain,dc=com" -D user@domain -W
# Curler
for i in {1..2}; do echo $i; done | curl -vk -X POST -T- http://app.infoman.com -H "Expect:" --trace -
for i in {1..2}; do echo $i; done | curl -vk -X POST -T- http://app.infoman.com -x 127.0.0.1:8080 -H "Expect:" --trace -
# Send Data in Post Normal
curl -F "data=@path/to/my-file.txt" http://example.com/
curl -vk -X POST -F "uname=ashish&fname=my-file.txt" http://app.infoman.com -x 127.0.0.1:8080 -H "Expect:" --trace -
curl -vk -X POST -F "[email protected]" http://app.infoman.com -x 127.0.0.1:8080 -H "Expect:" --trace -
curl -vk -X POST -F "uname=ashish" -F "fname=ajah" http://app.infoman.com -x 127.0.0.1:8080 -H "Expect:" --trace -
curl -vk -X POST -F "uname=ashish" -F "[email protected]" http://app.infoman.com -x 127.0.0.1:8080 -H "Expect:" --trace -
curl -vk -X POST -d "Myname is Raju" http://app.infoman.com -x 127.0.0.1:8080 -H "Expect:" --trace -
curl -vk "http://www.google.com" -x 10.139.232.245:8080
curl -vk "https://www.google.com" -x 10.139.232.245:8080
time curl -vk "http://www.google.com" -x 10.139.232.245:8080
time curl -vk "https://www.google.com" -x 10.139.232.245:8080
for i in {1..10}; do echo $i; done | curl -T- "http://10.139.232.245:8081" -x 10.139.232.245:8080
for i in {1..10}; do echo $i; done | curl -vk -T- "http://10.139.232.245:8081" -x 10.139.232.245:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment