Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Test 22/05/2017
- 1) #Give a list of all words with 14, 15 or 16 unique letters. The output format should look like this:
- Words with 14 letters: word1 word2 word3
- Words with 15 letters: word4 word5
- ...
- for n in 14 15 16; do echo "Words with $n letters:" $(grep -P "^.{$n}$" dutch | grep -vP '(.).*\1'); done
- 2) #Give a list of the usernames tried in ftp_bruteforce.pcap. You can only use tshark and sort
- tshark -r ftp_bruteforce.pcap -Y 'ftp.request.command == USER' -T fields -e ‘ftp.request.arg’ | sort -u
- 3) #Give the current time (format: Time= hh:mm:ss (dd-mm-yyyy))
- echo 'Time=' $(date +'%T (%x)') | tr / -
- 4) #Write a oneliner to decode the following file "secret" (contents: RGUgcHVudGVuIG9wIGRlemUgdnJhYWcgemlqbiBhbCBiaW5uZW4uCg==)
- #The file ends with '==' indicating base64 padding:
- openssl enc -d -base64 < secret
- 5) #Write a oneliner to display the fingerprint, serial and public key of wiki.uclllabs.be
- echo | openssl s_client -connect wiki.uclllabs.be:443 2>/dev/null | openssl x509 -fingerprint -serial -pubkey -noout
- // Test 24/05/2017
- 1) #There is a website running - https://darthvader.uclllabs.be/nw2/lab1 - which is only accessible from 193.191.177.1. That is the IP address of leia.uclllabs.be. Create an ssh tunnel between server leia and the webserver darthvader
- ssh -L 10000:darthvader.uclllabs.be:443 user@leia.uclllabs.be -p 22345
- 2) #Give a list of words with 5 letters that are also palindromes.
- grep -P '^(.)(.).\2\1$' dutch
- 3) #Show the file /etc/debconf.conf on screen without comment lines (i.e. lines starting with a #).
- grep -vP '^#' /etc/debconf.conf
- 4) #Give a list of the usernames tried in ftp_bruteforce.pcap. You can only use tshark and sort
- tshark -r ftp_bruteforce.pcap -Y 'ftp.request.command == USER' -T fields -e ‘ftp.request.arg’ | sort -u
- 5) #Write a oneliner to display the fingerprint, serial and public key of wiki.uclllabs.be
- echo | openssl s_client -connect wiki.uclllabs.be:443 2>/dev/null | openssl x509 -fingerprint -serial -pubkey -noout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement