01. SSH port forwarding
% ssh -L 2023:remotehost:23 remotehost
別コンソールで
% telnet lcalhost 2023
02. tcpdump with tcpdump-filter.pl
# /usr/sbin/tcpdump -l -s 1000 -x -i eth0 dst port telnet|tcpdump-filter.pl
---- CUT HERE ----- tcpdump-filter.pl -------
#!/usr/local/bin/perl
while(){
if(m/^[ \t]/){
$store .= $_
} else {
s/^[^ ]* //;
s/:[^:]*$//;
print "$_\n";
$_ = $store;
s/\s//g;
s/^.{120}//;
s/[0-9A-Fa-f][0-9A-Fa-f]/pack("C",hex $&)/eg;
s/[\x00-\x08\x0a-\x1f\x7f-\xff]/ /g;
print "$_\n";
$store = "";
}
}
------------------------------------------------
03. nmap
% nmap -v targethost
04. Mod Netscape Communicator
% find / -name netscape.ad -print
/usr/lib/netscape/communicator/ja ,if your os is TurbolinuxWS6.0
% emacs -nw netscape.ad # *versionLocale: xxxxxxxxxxxxxxxxxxx
05. USE WanderLust
M-x wl Start WanderLust
/ open sld
RET Scroll Under
Space Scroll Under
BS Scroll Uper
M-RET Top
M-t Online/Offline togleSW
> To Last Mail
< To Top Mail
H Full Header screen
@ From:xx --> .addresses
w Mod Send
A Reply
C-u A Reply ML
W ReplyPOST NetNews
C-c C-w Add Signature
C-c C-c Send draft And draft clear
C-c C-s Send draft And draft keep
C-c C-z Return (draft is save -> E type is conti)
C-c C-k Kill Buffer
C-c C-x C-i Add Tempu File
06. USE Netscape Config File
TurbolinuxWS6.0 : /usr/lib/netscape/communicator/Netscape.ad
/XKeysymDB
/registry
/usr/lib/netscape/communicator/ja/Netscape.ad
07. USE route for change gateway
# route add default gw (router IP addr) dev eth0
# route add default gw (router IP addr) netmask 255.255.255.0 dev eth0
08. find setuid
find / -user root -perm -4000 -exec ls -la '{}' \;
09. ? な改行コードをすべて CR に変換
$val =~ s/\r\n/\r/g;
$val =~ s/\n/\r/g;
10. BIND
##HOW TO KNOWN BIND VERSION
> set type=txt
> set class=chaos
> version.bind
##ETC
> set q=mx
> set q=ptr
11. sendmail start
/usr/sbin/sendmail -bd -q30m