Shell - Command Line PHP Hacking Input

Friday, February 2nd, 2018 | Coding

Argv is default for incoming command line arguments, this applies to Python as well.

$a = $argv;
$b = array();
	
if (count($a) != 0) {
		
	foreach ($a as $arg){
	   list($x,$y) = explode('=', $arg);
	   $b["$x"]    = $y;  
	}
		
	$message = $b['message'];
	$key = $b['key'];
			
}

Comments


E19 Creative

Products | Support | About | Contact | Login