Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$sql = "SELECT * FROM shells WHERE shell_trashed='0' AND shell_sold='0' AND shell_selected..

Decoded Output download

<?  $sql = "SELECT * FROM shells WHERE shell_trashed='0' AND shell_sold='0' AND shell_selected='0'"; 
		if(isset($_GET['hosting'])){ 
			$hosting = htmlspecialchars(addslashes(trim(strip_tags($_GET['hosting'])))); 
			$sql .= " AND shell_hosting LIKE '%{$hosting}%'"; 
		} 
		if(isset($_GET['serveros'])){ 
			$serveros = htmlspecialchars(addslashes(trim(strip_tags($_GET['serveros'])))); 
			$sql .= " AND shell_os LIKE '%{$serveros}%'"; 
		} 
		if(isset($_GET['tld'])){ 
			$tld = htmlspecialchars(addslashes(trim(strip_tags($_GET['tld'])))); 
			$sql .= " AND shell_tld LIKE '%{$tld}%'"; 
		} 
		if(isset($_GET['ssl'])){ 
			$ssl = htmlspecialchars(addslashes(trim(strip_tags($_GET['ssl'])))); 
			if($ssl!=''){ 
				$sql .= " AND shell_ssl='$ssl'"; 
			} 
		} 
		if(isset($_GET['seller'])){ 
			$seller = htmlspecialchars(addslashes(trim(strip_tags($_GET['seller'])))); 
			if($seller!=""){ 
				$sellerid = preg_replace("#[^0-9]#",'', $seller); 
				$runsql = mysqli_query($dbcon,"SELECT * FROM users WHERE id='$sellerid'"); 
				$row = mysqli_fetch_array($runsql); 
				$seller = $row['username']; 
				$sql .= " AND shell_seller='$seller'"; 
			} 
		} 
		if(isset($_GET['country'])){ 
			$country = htmlspecialchars(addslashes(trim(strip_tags($_GET['country'])))); 
			$sql .= " AND shell_country LIKE '%{$country}%'"; 
		} 
		if(isset($_GET['pricemin'])){ 
			$pricemin = htmlspecialchars(addslashes(trim(strip_tags($_GET['pricemin'])))); 
			if($pricemin!=""){ 
				$sql .= " AND shell_price >= $pricemin"; 
			} 
		} 
		if(isset($_GET['pricemax'])){ 
			$pricemax = htmlspecialchars(addslashes(trim(strip_tags($_GET['pricemax'])))); 
			if($pricemax!=""){ 
				$sql .= " AND shell_price <= $pricemax"; 
			} 
		} 
		$sql .= " ORDER BY shell_date DESC LIMIT 1500"; 
		if($res = mysqli_query($dbcon, $sql)){ 
			if(mysqli_num_rows($res) > 0){ 
				while($row = mysqli_fetch_array($res)){  
					$shell_id = $row['shell_id']; 
					$shell_ssl = $row['shell_ssl']; 
					$shell_link = $row['shell_link']; 
					$shell_password = $row['shell_password']; 
					$shell_price = $row['shell_price']; 
					$shell_country = $row['shell_country']; 
					$shell_tld = $row['shell_tld']; 
					$shell_uname = $row['shell_uname'];					 
					$shell_os = $row['shell_os']; 
					$shell_php_version = $row['shell_php_version']; 
					$shell_hosting = $row['shell_hosting']; 
					$shell_alexa = $row['shell_alexa']; 
					$shell_host = $row['shell_host']; 
					$shell_da = $row['shell_da']; 
					$shell_pa = $row['shell_pa']; 
					$shell_ip = $row['shell_ip']; 
					$shell_seller = $row['shell_seller']; 
					$sql = "SELECT id FROM users WHERE username='$shell_seller'"; 
					$runsql = mysqli_query($dbcon,$sql); 
					$seller_id = mysqli_fetch_array($runsql)[0]; 
					$shell_date = $row['shell_date']; 
					$shell_country_code = strtolower($row['shell_country_code']); 
					if($shell_country=="" && $shell_country_code==""){ 
						$shell_country = "Unknown Country"; 
						$shell_country_code = "unknown"; 
					} 
					echo ' 
						<tr> 
						  <th scope="row" class="align-middle no-wrap">'.$shell_id.'</th> 
						  <td style="width:1px; white-space:nowrap;" class="align-middle no-wrap"><img src="images/flags/'.$shell_country_code.'.png" width="30" height="18" data-toggle="tooltip" title="'.$shell_country.'"> '.strtoupper($shell_country_code).'</td> 
						  <td class="align-middle no-wrap">'; if($shell_ssl=="https"){echo '<span class="badge text-success" style="font-size:14px;"><i style="font-style:normal;"><i class="fas fa-lock fa-fw" aria-hidden="true"></i> '.strtoupper($shell_ssl).'</i></span>';}else{echo '<span class="badge text-dark" style="font-size:14px;"><i class="fas fa-lock-open fa-fw" aria-hidden="true"></i> '.strtoupper($shell_ssl).'</span>';} echo '</td> 
						  <td class="align-middle no-wrap">.'.$shell_tld.'</td> 
						  <td class="align-middle no-wrap">'.$shell_da.'</td> 
						  <td class="align-middle no-wrap">'.$shell_pa.'</td>  
						  <td class="align-middle no-wrap">'; if($shell_os=="Linux"){echo '<span class="btn btn-primary btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="WINNT"){echo '<span class="btn btn-danger btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-windows"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="FreeBSD"){echo '<span class="btn btn-primary btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="SunOS"){echo '<span class="btn btn-primary" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="OpenBSD"){echo '<span class="btn btn-primary btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else{echo '<span class="btn btn-dark btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fas fa-question-circle"></i> Unknown</span>';} echo '</td> 
						  <td class="align-middle no-wrap">'.$shell_hosting.'</td> 
						  <td class="align-middle no-wrap">'; if($shell_alexa=="N/A"){echo $shell_alexa;}else{echo number_format($shell_alexa);} echo '</td> 
						  <td class="align-middle no-wrap">'; if($shell_alexa=="N/A"){echo 'N/A';}else{echo '<div id="seoinfo'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=seoinfo("'.$shell_id.'")>SEO Info</button></div>';} echo '</td> 
						  <td class="align-middle no-wrap">'.$shell_price.'</td> 
						  <td class="align-middle no-wrap">'."seller".$seller_id.'</td> 
						  <td class="align-middle no-wrap"><small>'.$shell_date.'</small></td>	 
						  <td class="align-middle no-wrap"><div id="checksend'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=checksend("'.$shell_id.'")><i class="fa fa-paper-plane" aria-hidden="true"></i> Check Send</button></div></td> 
						  <td class="align-middle no-wrap"><div id="checkzip'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=checkzip("'.$shell_id.'")><i class="fa fa-archive" aria-hidden="true"></i> Check ZIP</button></div></td> 
						  <td class="align-middle no-wrap"><div id="workornot'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=checkshell("'.$shell_id.'")>Check</button></div></td> 
						  <td class="align-middle no-wrap"><div id="buy'.$shell_id.'"><button type="button" class="btn btn-danger btn-sm" onclick=buyshell("'.$shell_id.'")>Buy</button></div></td>	   
						</tr>		 
					'; 
				} 
				echo '</tbody></table>'; 
			}else{ 
				echo '</tbody></table>'; 
			} 
		} ?>

Did this file decode correctly?

Original Code

$sql = "SELECT * FROM shells WHERE shell_trashed='0' AND shell_sold='0' AND shell_selected='0'";
		if(isset($_GET['hosting'])){
			$hosting = htmlspecialchars(addslashes(trim(strip_tags($_GET['hosting']))));
			$sql .= " AND shell_hosting LIKE '%{$hosting}%'";
		}
		if(isset($_GET['serveros'])){
			$serveros = htmlspecialchars(addslashes(trim(strip_tags($_GET['serveros']))));
			$sql .= " AND shell_os LIKE '%{$serveros}%'";
		}
		if(isset($_GET['tld'])){
			$tld = htmlspecialchars(addslashes(trim(strip_tags($_GET['tld']))));
			$sql .= " AND shell_tld LIKE '%{$tld}%'";
		}
		if(isset($_GET['ssl'])){
			$ssl = htmlspecialchars(addslashes(trim(strip_tags($_GET['ssl']))));
			if($ssl!=''){
				$sql .= " AND shell_ssl='$ssl'";
			}
		}
		if(isset($_GET['seller'])){
			$seller = htmlspecialchars(addslashes(trim(strip_tags($_GET['seller']))));
			if($seller!=""){
				$sellerid = preg_replace("#[^0-9]#",'', $seller);
				$runsql = mysqli_query($dbcon,"SELECT * FROM users WHERE id='$sellerid'");
				$row = mysqli_fetch_array($runsql);
				$seller = $row['username'];
				$sql .= " AND shell_seller='$seller'";
			}
		}
		if(isset($_GET['country'])){
			$country = htmlspecialchars(addslashes(trim(strip_tags($_GET['country']))));
			$sql .= " AND shell_country LIKE '%{$country}%'";
		}
		if(isset($_GET['pricemin'])){
			$pricemin = htmlspecialchars(addslashes(trim(strip_tags($_GET['pricemin']))));
			if($pricemin!=""){
				$sql .= " AND shell_price >= $pricemin";
			}
		}
		if(isset($_GET['pricemax'])){
			$pricemax = htmlspecialchars(addslashes(trim(strip_tags($_GET['pricemax']))));
			if($pricemax!=""){
				$sql .= " AND shell_price <= $pricemax";
			}
		}
		$sql .= " ORDER BY shell_date DESC LIMIT 1500";
		if($res = mysqli_query($dbcon, $sql)){
			if(mysqli_num_rows($res) > 0){
				while($row = mysqli_fetch_array($res)){ 
					$shell_id = $row['shell_id'];
					$shell_ssl = $row['shell_ssl'];
					$shell_link = $row['shell_link'];
					$shell_password = $row['shell_password'];
					$shell_price = $row['shell_price'];
					$shell_country = $row['shell_country'];
					$shell_tld = $row['shell_tld'];
					$shell_uname = $row['shell_uname'];					
					$shell_os = $row['shell_os'];
					$shell_php_version = $row['shell_php_version'];
					$shell_hosting = $row['shell_hosting'];
					$shell_alexa = $row['shell_alexa'];
					$shell_host = $row['shell_host'];
					$shell_da = $row['shell_da'];
					$shell_pa = $row['shell_pa'];
					$shell_ip = $row['shell_ip'];
					$shell_seller = $row['shell_seller'];
					$sql = "SELECT id FROM users WHERE username='$shell_seller'";
					$runsql = mysqli_query($dbcon,$sql);
					$seller_id = mysqli_fetch_array($runsql)[0];
					$shell_date = $row['shell_date'];
					$shell_country_code = strtolower($row['shell_country_code']);
					if($shell_country=="" && $shell_country_code==""){
						$shell_country = "Unknown Country";
						$shell_country_code = "unknown";
					}
					echo '
						<tr>
						  <th scope="row" class="align-middle no-wrap">'.$shell_id.'</th>
						  <td style="width:1px; white-space:nowrap;" class="align-middle no-wrap"><img src="images/flags/'.$shell_country_code.'.png" width="30" height="18" data-toggle="tooltip" title="'.$shell_country.'"> '.strtoupper($shell_country_code).'</td>
						  <td class="align-middle no-wrap">'; if($shell_ssl=="https"){echo '<span class="badge text-success" style="font-size:14px;"><i style="font-style:normal;"><i class="fas fa-lock fa-fw" aria-hidden="true"></i> '.strtoupper($shell_ssl).'</i></span>';}else{echo '<span class="badge text-dark" style="font-size:14px;"><i class="fas fa-lock-open fa-fw" aria-hidden="true"></i> '.strtoupper($shell_ssl).'</span>';} echo '</td>
						  <td class="align-middle no-wrap">.'.$shell_tld.'</td>
						  <td class="align-middle no-wrap">'.$shell_da.'</td>
						  <td class="align-middle no-wrap">'.$shell_pa.'</td> 
						  <td class="align-middle no-wrap">'; if($shell_os=="Linux"){echo '<span class="btn btn-primary btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="WINNT"){echo '<span class="btn btn-danger btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-windows"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="FreeBSD"){echo '<span class="btn btn-primary btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="SunOS"){echo '<span class="btn btn-primary" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else if($shell_os=="OpenBSD"){echo '<span class="btn btn-primary btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fab fa-linux"></i> '.$shell_os.' - '.$shell_php_version.'</span>';}else{echo '<span class="btn btn-dark btn-sm" data-toggle="tooltip" title="'.$shell_uname.'"><i class="fas fa-question-circle"></i> Unknown</span>';} echo '</td>
						  <td class="align-middle no-wrap">'.$shell_hosting.'</td>
						  <td class="align-middle no-wrap">'; if($shell_alexa=="N/A"){echo $shell_alexa;}else{echo number_format($shell_alexa);} echo '</td>
						  <td class="align-middle no-wrap">'; if($shell_alexa=="N/A"){echo 'N/A';}else{echo '<div id="seoinfo'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=seoinfo("'.$shell_id.'")>SEO Info</button></div>';} echo '</td>
						  <td class="align-middle no-wrap">'.$shell_price.'</td>
						  <td class="align-middle no-wrap">'."seller".$seller_id.'</td>
						  <td class="align-middle no-wrap"><small>'.$shell_date.'</small></td>	
						  <td class="align-middle no-wrap"><div id="checksend'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=checksend("'.$shell_id.'")><i class="fa fa-paper-plane" aria-hidden="true"></i> Check Send</button></div></td>
						  <td class="align-middle no-wrap"><div id="checkzip'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=checkzip("'.$shell_id.'")><i class="fa fa-archive" aria-hidden="true"></i> Check ZIP</button></div></td>
						  <td class="align-middle no-wrap"><div id="workornot'.$shell_id.'"><button type="button" class="btn btn-primary btn-sm" onclick=checkshell("'.$shell_id.'")>Check</button></div></td>
						  <td class="align-middle no-wrap"><div id="buy'.$shell_id.'"><button type="button" class="btn btn-danger btn-sm" onclick=buyshell("'.$shell_id.'")>Buy</button></div></td>	  
						</tr>		
					';
				}
				echo '</tbody></table>';
			}else{
				echo '</tbody></table>';
			}
		}

Function Calls

None

Variables

None

Stats

MD5 169d118f114df06f9663c0fb6eabb570
Eval Count 0
Decode Time 51 ms