October 28, 2019 · Basic Pen-Testing
1.1 : Basic Linux file operation
Find files
# search specific $FILE location
locate $FILE
# check command base path
which $COMMAND
# search file with $NAMEXREGEX in $SRC
find $SRC -name $NAMEREGEX
find $SRC -name $NAMEREGEX -exec file {} \;
Lookup service
# active open connections & ports with downloads, show only with ssh
netstat -antp | grep ssh
/etc/init.d/ssh start #or service ssh start
__auto init on start__
update-rc.d ssh enable
rcconf