All in one forum  - Applications | Games | E-Books | Music, Movies & Videos | Mobile Stuff | Live Discussions | Webmaster Stuff | Many More | Community to Hang Out and Stick to
Search Today's Posts Mark Forums Read

Go Back   Home > Tutorial Section > Operating System > Linux
Reload this Page Useful linux commands when you have a shell [KEEP ADD]
Forgot Password? Join Us!
Linux Post your Linux related tips and tricks here

Notices
Your link here Your link here Your link here Your link here Your link here

Your Ad Here


Rate This Thread - Useful linux commands when you have a shell [KEEP ADD].

Post New Thread Reply
Bookmarks
 
LinkBack Thread Tools Display Modes
Old 05-10-2008, 08:51 PM   #1 (permalink)
 
User Info
Join Date: Feb 2008
Age: 17
Achievements Posts: 464
Casino Cash: $74700

Total Points: 65,574.05
Donate

Reputation: 18850
hackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud ofhackproof has much to be proud of


Useful linux commands when you have a shell [KEEP ADD]

cat ./../mainfile.php - Config file.

ls -la - Lists directory's.

ifconfig {eth0 etc} - Ipconfig equiv.

ps aux - Show running proccess's.

gcc in_file -o out_file - Compile c file.

cat /etc/passwd - List's accounts.

sudo - Superuser Do run a command as root provided you have perms
in /etc/sudoers.

id - Tells you what user your logged in as.

which wget curl w3m lynx - Check's to see what downloaders are
present.

uname -r - Shows all release info (or) cat /etc/release.

uname -a - Shows all kernal info (or) cat /etc/issue

last -30 - Last logged 30 ip's can change to desired number.

useradd - Create new user account.

usermod - Modify user account.

w - See who is currently logged on.

locate password.txt - Locates password.txt in current dur can use *.

rm -rf / - Please be carefull with this command, i cannot stress this
enough.

arp -a - Lists other machines are on the same subnet.

lsattr -va - ls file attributes on linux second extended file system

find / -type f -perm -04000 -ls - Finds suid files.

find . -type f -perm -04000 -ls - Finds suid files in current dir.

find / -type f -perm -02000 -ls - Finds all sgid files.

find / -perm -2 -ls - Finds all writable files and folders.

find . -perm -2 -ls - Finds all writable files and folders in current dir.

find / -type f -name .bash_history - Finds bash history.

netstat -an | grep -i listen - shows open ports.

cut -d: -f1,2,3 /etc/passwd | grep :: - From memory creates a user
with no pass.

find /etc/ -type f -perm -o+w 2> /dev/null - Write in /etc/passwd?.

cat /proc/version /proc/cpuinfo - Cpu info.

locate gcc- Finds gcc if installed.

set - Display system variables.

echo $path- Echo current path.

lsmod- Dumps kernal modules.

mount/df- Check mounted file system.

rpm -qa- Check patch level for RedHat 7.0.

dmesg- Check hardware ino.

cat /etc/syslog.conf - Log file.

uptime - Uptime check.

cat /proc/meminfo - Memory check.

find / -type f -perm -4 -print 2> /dev/null- Find readble files.

find / -type f -perm -2 -print 2> /dev/null - Find writable files.

chmod ### $folder - Chmod folder.

ls -l -b - Verbosly list directory's

have a nice dayuah[1]:
__________________
1. find a forum that you can exploit
2. exploit it
3. download the DB (database)
4. extract password hashes from DB
5. crack hashes
hackproof is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Click here to Donate to remove the Adverts.
Your Ad Here
Old 05-12-2008, 06:31 PM   #2 (permalink)
 
luckdragon's Avatar
 
User Info
Join Date: Jan 2008
Achievements Posts: 35
Casino Cash: $7450

Total Points: 1,186.07
Donate

Reputation: 50
luckdragon is on a distinguished road


cool thanks
luckdragon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply
Click here to Donate to remove the Adverts.
Your Ad Here
Post New Thread Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Commands 117 hackproof Windows XP 0 05-10-2008 12:48 AM
All mIRC Commands devilboyz Forum Tutorials && Noobs Solutions 0 02-13-2008 05:11 AM
Linux Shell Script - how to split string into... Jawapro Linux and UNIX 0 07-12-2007 08:18 AM
Give some commands of LINUX operating system? tanmoyroy_123 Linux and UNIX 2 05-27-2007 08:27 AM
What is the Difference between System call and commands ganboo Linux and UNIX 1 05-22-2007 01:06 PM



Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles

RapidShare Links PhazeDDL Warez
PhazeDDL Warez