Suramya's Blog : Welcome to my crazy life…

May 7, 2005

How to log shell sessions?

Filed under: Security Tools,Tech Related — Suramya @ 4:11 AM

Use a program called script, it makes a typescript of terminal session, meaning it logs everything printed on your terminal. Use `man script` to get more information about it.

– Suramya

How to see which programs are opening ports

Filed under: Computer Security,Security Tools,Tech Related — Suramya @ 4:02 AM

These tools will help you identify which programs are opening what ports on the system.

1. lsof | grep ‘IPv.’

lsof shows the list of open files, piping it through grep and searching for IPv will give you a list of ports used by a program

lsof -i TCP:<PORT>

where PORT is the one you need to know about the program behind it.

2. netstat -anp

Should display open ports, machines connected to the ports as well as which application has that port open.

If you know of any other ways let me know.

– Suramya

How to find suid files on a linux system

Filed under: Tutorials — Suramya @ 3:53 AM

The following commands will list all suid files on a linux system:

Method 1:

find / -perm +ugo=s

Method 2:

find / -perm +4000

Method 3:

/usr/bin/find / -type f \( -perm -004000 -o -perm -002000 \) -exec ls -lg {} \; 2>/dev/null >suidfiles.txt

– Suramya

May 5, 2005

Remove Backgrounds from images using GIMP

Filed under: Computer Software,Tech Related,Tutorials — Suramya @ 7:04 PM

Newsforge has a good article that explains how to remove the background from an image using GIMP.

Article: Remove Background from images

The Coroner Toolkit

Linux Magazine has a really good article on The Coroner Tool kit which allows a sysadmin to perform forensics analysis on a compromized system.

Article: Linux Magazine
The Coroner Toolkit: Download Page

– Suramya

How to use Netcat

Filed under: Computer Software,Tech Related,Tutorials — Suramya @ 5:19 AM

Often referred to as the ‘Swiss Army Knife of networking,’ netcat is a tool that administrators can use to read and write TCP or UDP data across the network. In addition, it’s extremely useful for network debugging and testing. This article by Vincent Danen at techrepublic.com covers some of the uses of netcat.

– Suramya

Add barcodes to WebApps

Filed under: Tutorials — Suramya @ 1:08 AM

The following TechRepublic article tells you how to add barcodes to PHP based Webapps using PEAR::Image_Barcode. Check it out here.

– Suramya

May 4, 2005

Debian Sarge Setup instructions

Filed under: Tutorials — Suramya @ 8:49 PM

A lot of people claim that Debian is hard to setup and I somewhat agree with them, Debian can be intimidating to those who are not familiar with linux. Falko Timme decided to make life easier for newcomers to Debian by writing an easy to follow instruction manual to guide newcomers through Debian Sarge installation.

This guide is available here.

– Suramya

Website Back up

Filed under: Website Updates — Suramya @ 2:43 PM

suramya.com is now back up after a 2 day downtime which was a lot longer than what I was aiming for… But I blame this delay on the server, it took forever to compile and install stuff… Plus I had forgotten how much I had customized the server so I had to re-install everything from scratch to bring it back to normal.

NEways, sorry for the extended downtime. Hopefully the sever shouldn’t be going down so often now. Also I have installed monitoring software on my home machine which will monitor the webserver so I will know if anything goes down and when I need to bring stuff back up again.

Let me know if you have any problems with the site.

Thanks,
Suramya

April 30, 2005

Website will be down for a couple of hours

Filed under: Website Updates — Suramya @ 7:34 AM

Hi,
Suramya.com will be down for a couple of hours over the weekend so that I can do some upgrades on the webserver. I don’t think that this will take more than a few hours but lets see…

Will keep you posted.

– Suramya

« Newer PostsOlder Posts »

Powered by WordPress