using curl to access ftp server

October 6th, 2007 mysurface

The title doesn’t sound interesting if you have no idea what is curl. Why we need to use curl to access ftp server, if we can access ftp with tools like ftp in console or gFTP? Well gFTP is a very handy ftp client with gtk front end, as I use it daily to maintain […]

Posted in Advance, curl, Network | Hits: 376371 | 85 Comments »

sending HTTP POST using curl command

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 curl, Network | Hits: 1278294 | 38 Comments »

What is my Public IP Address?

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. – the chicken looks so […]

Posted in curl, egrep, grep, Misc, Text Manipulation, wget | Hits: 139640 | 20 Comments »

how to wget flv from youtube

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–IDKc Step one, download it and extract the encrypted strings using grep. wget -O […]

Posted in Network, wget | Hits: 157935 | 117 Comments »

Web Authoring with Vim

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 […]

Posted in Network, Text Manipulation, vim | Hits: 54666 | 9 Comments »

simple usage of tcpdump

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: 676502 | 40 Comments »

connect to windows vpn using pptpconfig

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 […]

Posted in Network, pptpconfig, route | Hits: 44188 | 9 Comments »

monitor custom programs with ps and watch

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. […]

Posted in Admin, ps, watch | Hits: 84940 | 18 Comments »

ssh reverse tunneling

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 […]

Posted in Admin, Network, ssh | Hits: 95227 | 11 Comments »

Hustle! Ad Hoc Wireless connections from Linux to Windows

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 ifconfig, Network, nm-applet, ping, route | Hits: 103757 | 5 Comments »