From the collection of WTF moments, not to undermine the new film by Oliver Stone – Snowden. In the early part of the movie there is an interesting unix terminal session scene which is worth a closer look.
“We are gonna start with an aptitude test, each of you is gonna build a COVER(?) communications network in your home city. You are gonna deploy it, backup your site, destroy it and restore it again. The point of this exercise is to keep our infrastructure up and running securely. The average test time is five hours. If you take more than eight, you will fail”
root@localhost:~ # nmap -p1433 --script=ptest.nse
– scanning mysql port 1433 where ? no host given or ip range..
– ptest.nse must be some uber pentest nmap script :)
root@localhost:~ # tar cvfg sqlfiles.tar.tb2 /dbdump
– Created a bzipped tarball with .tb2 extension of /dbdump directory :)
root@localhost:~ # sudo nmap -sP 10.14.0.0/24
– Why doing an nmap ping scan via sudo if we are root anyway ?
– no stdout ?
root@localhost:~ # tar --extract --file=sqlfiles.tar.bz2 /dbdump
– Now what the fsck is this command supposed to do ?
root@localhost:~ # bash sntoolscr.sh
– I wonder what this script does :) Only a blurred set of strings is visible. Strange way of starting a script but hey. this is NSA..
In the background we can see the following browser agents:
Gecko/20100101 Firefox/33.0 gray MSIE 7.0; Windows NT ...
– From when is Firefox 33 ? – Answer: October 2014
– The timestamps in the terminal however shows 2005 (screen further below)
Entering the CIA instructor and checking the test results …
root@localhost:~# cd backup root@localhost:~# ls -aril
– What is the CIA instructor looking for ?
– explanation -a(all) -r(recursive) -i (print inodes per file) -l (long list format)
– we get a strange looking result
2271953 -rw-r--r-- 1 psx root 1056 2005/06/21 10: ./dump496 2005/06/21 10:14:25: 212602 212602 . 212603 202603 .. 212604 drwxr-xr-x 9 local root 2912 2005/06/21 10: 212605 drwxr-xr-x 3 local root 3264 2005/06/21 10:
– Shouldn’t directories under unix have 4096 size ? I don’t get it :)
– Maybe its some uber Unix clone the guys in CIA use …
Now some time passes and we finally get to the scene where the NSA files are stolen :)
Its not a bad movie and I just wanted to comment on some technical aspects shown.