Live Chat!

sending HTTP POST using curl command

* * * * * 1 votos

September 15th, 2007 mysurface

Recently I was having fun with libcurl, discovered that with curl command I capable of doing HTTP POST with specified User-agent string. For those who have no idea what is curl, curl is a powerful client tool for accessing servers through FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE and LDAP, please find [...]

Posted in Network, curl | Hits: 17791 | 1 Comment »

What is my Public IP Address?

* * * ½   6 votos

August 22nd, 2007 mysurface

What is my public IP address? There is a lots of website can provide you the information. What if I wanna grep it for my script? We can use curl and grep for this purpose.
First, lets pick few websites that provide the service to reveal my public IP.
http://www.ipchicken.com/ - the chicken looks so [...]

Posted in Misc, Text Manipulation, curl, egrep, grep, wget | Hits: 34815 | 6 Comments »

how to wget flv from youtube

* * * * * 1 votos

August 1st, 2007 mysurface

To strip flv from youtube links, you have to complete two steps. Firstly extract the encrypted string from a youtube link, next append to get_video.php and download through wget.
The youtube links, that people distribute around will looks something like below
http://www.youtube.com/watch?v=B6fnR–IDKc
Step one, download it and extract the encrypted strings using grep.
wget -O test http://www.youtube.com/watch?v=B6fnR–IDKc
-O is to [...]

Posted in Network, wget | Hits: 32655 | 13 Comments »

Web Authoring with Vim

          0 votos

June 18th, 2007 toydi

In usual editing, to open a file with vim, we run the command:
vim /path/to/file
It is also possible to browse a directory using vim:
vim /path/to/directory/
When we are inside vim, to save a file, we use the :write command, :read to read an existing file into current buffer; or using :tabnew /path/to/file to open a [...]

Posted in Network, Text Manipulation, vim | Hits: 17311 | No Comments »

simple usage of tcpdump

* * * * * 1 votos

May 23rd, 2007 mysurface

This is what I learn from geek00l today. Tcpdump is a really great tool for network security analyst, you can dump packets that flows within your networks into file for further analysis. With some filters you can capture only the interested packets, which it reduce the size of saved dump and further reduce loading and [...]

Posted in Network, tcpdump | Hits: 30422 | 4 Comments »

connect to windows vpn using pptpconfig

* * *     1 votos

April 1st, 2007 mysurface

To create a tunnel connecting to microsoft VPN server is not a difficult. With the help of pptpconfig GUI, let see how to do it.
Installation
First of all, you need to make sure whether pptpconfig was installed. Check out ubuntu geek for pptpconfig installation guide for ubuntu linux. You can have more details info regarding pptp [...]

Posted in Network, pptpconfig, route | Hits: 11891 | No Comments »

monitor custom programs with ps and watch

* * * *   1 votos

March 26th, 2007 mysurface

ps is a very useful tool to list all current running processes with various info such as CPU usage, memory usage, process status, process id etc.
watch is another good tool to continuously execute some programs in infinite loop. watch allows you to make use of commands such as ps, netstat, lsof into monitoring purpose.
The common [...]

Posted in Admin, ps, watch | Hits: 11364 | 4 Comments »

ssh reverse tunneling

* * * * * 1 votos

March 16th, 2007 mysurface

Recently I just discover how to perform ssh reverse tunneling, which is so amazing! I though I know enough about ssh, but ssh is capable of doing more than just connect to a remote server. You can find simple examples of accessing remote server through ssh here.
What is the usage for reverse tunneling?
Let say I [...]

Posted in Admin, Network, ssh | Hits: 11721 | 6 Comments »

Hustle! Ad Hoc Wireless connections from Linux to Windows

          0 votos

February 4th, 2007 mysurface

Hustle! To setup an Ad Hoc wireless connection between windows and Linux, it spend me half an hour of trying just because desperately wanna get Internet access. I decided to write down because the steps are confusing. Bare in mind the steps shown bellow just work on the case that I gonna illustrate later and [...]

Posted in Network, ifconfig, nm-applet, ping, route | Hits: 19066 | 1 Comment »

gnome network manager savior for wireless user

* * * * * 1 votos

November 13th, 2006 mysurface

To connect to wifi Acess Point which uses WPA encryption, you can uses wpa_supplicant.
But what if you have difficulty to make it right? getting panic? You need some GUI to help out? Don’t worry, gnome network manager gives you a good help.
Check with your distro, It should be very easy installation. For Debian, Ubuntu, [...]

Posted in Network, nm-applet, wpa_supplicant | Hits: 11869 | 4 Comments »