Track ftp password from tcpdump Linux

Very nice and simple: tcpdump port ftp -l -A | egrep -i ‘pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|username:|password:|login:|pass |user ‘ –color=auto –line-buffered -B20 nJoy  😉

Adding all new files and subdirs to svn

Sometimes you find yourself catching up with some devs who did not care to add all the stuff they should to SVN or you want to make sure all files are in SVN. Well here’s a hand script : svn status | awk ‘{if ($1 == “?”) print $2 }’ | xargs svn add nJoy…

Controlling windows system from a Linux box.

Set up winexe. wget "ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/GRNET:/synnefo/CentOS_CentOS-6/x86_64/winexe-1.00-9.1.x86_64.rpm" yum install winexe-1.00-9.1.x86_64.rpm   Test the connection <pre>telnet 10.0.0.123 139</pre> Now we can try the system out winexe -U "User 1" –password=secretpassword //10.0.0.123 'cmd /C "whoami"' If you get : ERROR: Failed to open connection – ERRDOS:ERRnomem then it’s probably a Windows 7 box run reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"…

Vim auto align columns

Best trick ever i found on vim : if you start with rough space, comma delimited files to align them just type in command :  :%!column -t AWESOME !!! I love VIM nJoy 😉

Enable SSI on Apache2 under Ubuntu

Tested on: – Ubuntu Linux 10.10 Maverick Meerkat (2010-11-21) – Ubuntu Linux 7.10 Gutsy Gibbon – Ubuntu Linux 6.06 Dapper Drake – Ubuntu Linux 5.10 Breezy Badger   1)  Optional: Install the Apache2 httpd server if not already installed. sudo apt-get install apache2 2) Create the following symlink. sudo ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled 3) Open…

Install ffmpeg on Centos 6

Step 1 – Install ATRPMS Repository rpm –import http://packages.atrpms.net/RPM-GPG-KEY.atrpms rpm -Uvh http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-7.el6.x86_64.rpm Step 2 – Install FFMpeg from ATRPMS Repository yum -y –enablerepo=atrpms install ffmpeg Verify that you have FFMpeg installed: ffmpeg -version nJoy 😉

Recording a session for a user when he / she logs in ssh

  To start recording each session add this to the users .profile file DATE=$(date +”%Y%m%d%H%M”) mkdir /log/$DATE script -t 2>/log/$DATE/bashlogs.timing -aqf /log/$DATE/bashlogs.script   to playback go to /log/<timestamp> and run scriptreplay  bashlogs.timing bashlogs.script 3 where the 3 is the speed up factor. nJoy;