Created
November 19, 2012 21:22
-
-
Save gerjantd/4114046 to your computer and use it in GitHub Desktop.
Misc security: nc (netcat), nikto, tcptrack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkfifo foo | |
nc -lk 2600 0<foo | /bin/bash 1>foo 2>&1 | |
(REMOTE: nc myip 2600) | |
mkdir -p foo/bar/baz/quux | |
cd foo/bar/baz/quux/ | |
for i in `seq 1 1000`; do echo -n $i" " >> foobar.txt ; done | |
zip -f foo.zip foo/ | |
hexedit foo.zip | |
cd workspace-sts-2.9/cda/ | |
cp -pvri cda cda2 | |
cd cda2 | |
rm -rf target | |
createdb -U postgres -h localhost cda_tst | |
vi pom.xml | |
mvn test -Ppostgresql_tst -Dtest=RoleDaoTest | |
ifconfig | |
sudo tcptrack | |
sudo tcptrack -i eth0 | |
curl -v http://localhost:8080 | |
nikto | |
nikto -h localhost -p 8080 | |
nikto -h localhost -p 8080 -F txt -o nikto.log & | |
tail -F nikto.log | |
vi sids.txt | |
(my ip: 10.42.0.130) | |
nc -l 1234 > zembla.mp2 | |
(remote: nc 10.42.0.130 1234 < zembla.mp2 | |
watch -n 2 ls -ltrh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment