Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

API Key and CMD Script | Could be used for Skype Resolver API

Main purpose: If you know how an API Key works, this should be very simple for you. This could also be used for a Skype Resolver API, or other things you want to add into it.

Say, you wanted to show CMD2; input would be http://domain.com/test.php?key=key1&cmd=1

This could be useful to some, others.. Not so much.

Code
<?php
/*
Coded by White Spy from HF.
Profile: hackforums.net/member.php?action=profile&uid=2236072
*/
?>

<?php
//Gets the ?key from domain link.
$key = $_GET['key'];

//Gets the &cmd= from domain link.
$cmd = $_GET['cmd'];
?>

<?php
//Checks to see if the key is blank.
if($key == null)
{
echo '<font color="red">ERROR</font>: Enter your key.</font>';
} else {

//Checks to see if the cmd is blank.
if($cmd == null)
{
echo '<font color="red">ERROR</font>: Enter a command.</font>';
} else {

//Clears site.
ob_end_clean();

//If Key entered correctly, it will show form.
//You can also edit the key to whatever you like.
if($key == "key1" || $key == "key2")
{

//Echo's what command you selected.
echo '<font size="3">('.$cmd.')</font>';

//If you are wanting to get information from a site, uncheck the '//' and enter in your link between the ''.
//$link1 = file_get_contents('http://your domain.com/document.txt');
//$link2 = file_get_contents('http://your domain.com/document.txt');
//$link3 = file_get_contents('http://your domain.com/document.txt');
{
if($cmd == "4")
{
echo "Command is not available at this time.";
} else {

//Checks if CMD=1
if($cmd == '1')
{
echo "Command 1 selected.";
//echo $link1; //uncheck lines if you are using this to get information from site.
} else {

//Checks if CMD=2
if($cmd == '2')
{
echo "Command 2 selected.";
//echo $link2; //uncheck lines if you are using this to get information from site.
} else {

//Checks if CMD=3
if($cmd == '3')
{
echo "Command 3 selected.";
//echo $link3; //uncheck lines if you are using this to get information from site.
} else {
echo " Unknown Command.";
}
}
}
}
}
}
}
}
?>


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by Joshuaharry1066Sep 22, 2017 07:26 PM 2 230 Sep 22, 2017 07:26 PM
Last Post: RumbleFrog
[PHP] by BLOW.Sep 11, 2015 09:41 AM 12 542 Sep 11, 2015 09:41 AM
Last Post: BLOW.
[PHP] by SyracusiaJun 29, 2015 04:58 AM 18 1,898 Jun 29, 2015 04:58 AM
Last Post: Syracusia