Monday, February 18, 2008

python shell scripting 4

Step 1 command: sudo gedit hello

File Name: hello
hello world example:
#!/bin/bash
#
python hello.py

--------------------------------------------------

Step 2 command: sudo gedit hello.py

File Name: hello.py
hello world example in python:
#! /usr/local/bin/python
import os
if os.environ['USER']:
print 'Hello, '+os.environ['USER']

----------------------------------------------------

shell command to run program:
cd /home/user/scripts

shell Prompt: command:
------------------------------- --------
user@youhomecomputer:~/scripts$ ./hello

Toxic Email & Exploiter's

FONT & EMAIL WORM SCANNER:
sudo apt-get install clamav


rootkit, backdoor, sniffer and exploit scanner
Rootkit Hunter scans your system for known and unknown rootkits, backdoors, sniffers and exploits.

Some of the tests it does:
- MD5 hash compare
- Look for default files used by rootkits
- Wrong file permissions for binaries
- Look for suspected strings in LKM and KLD modules
- Look for hidden files
- Optional scan within plaintext and binary files

Please note that rkhunter does *not* guarantee your system has not been compromised! You should also run additional tests, e.g. using chkrootkit and other measures.



How to use this software:
sudo apt-get install chkrootkit

sudo chkrootkit

sudo rkhunter --check




Homepage: http://rkhunter.sourceforge.net
• Ubuntu Synaptic Package Manager has this ready to download.