403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /PHP83/examples/digg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /PHP83/examples/digg/digg_a_story.php
<?php

include('config.inc.php');

try {
$oauth = new OAuth(DIGG_CONSUMER_KEY, DIGG_CONSUMER_SECRET, OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_FORM);
$request_token = $oauth->getRequestToken("http://services.digg.com/1.0/endpoint?method=oauth.getRequestToken");

echo "Go to http://digg.com/oauth/authorize?oauth_token={$request_token["oauth_token"]} and enter the code (PIN) given at the end of the flow @ digg\n";
$in = fopen("php://stdin", "r");
$verifier = fgets($in, 255);

echo "Grabbing an access token...\n";

$oauth->setToken($request_token["oauth_token"], $request_token["oauth_token_secret"]);
$access_token = $oauth->getAccessToken("http://services.digg.com/1.0/endpoint?method=oauth.getAccessToken", NULL, $verifier);

echo "Got an access token: " . $access_token["oauth_token"];

$oauth->setToken($access_token["oauth_token"], $access_token["oauth_token_secret"]);

$oauth->fetch("http://services.digg.com/1.0/endpoint?method=story.digg", array("story_id" => "21595036"));

$xml = simplexml_load_string($oauth->getLastResponse());

echo "http://digg.com/programming/PHP_OAuth_Manual has been dugg\n";

} catch (OAuthException $E) {
var_dump($E);
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit