<?php
$username = 'selenagomez'; //$_GET['username']
/*
# Use the Curl extension to query Google and get back a page of results
$url = "http://instagram.myhacks.net/processing_request.php?username=$username";
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$html = curl_exec($ch);
curl_close($ch);
$dom = new DOMDocument();
@$dom->loadHTML($html);
foreach($dom->getElementsByid('#current-followers-value') as $link) {
# Show the <a href>
echo $link->first_child()->plaintext;
echo "<br />";
}
*/
$page = "http://instagram.myhacks.net/processing_request.php?username=" . $username;
$dom = new DOMDocument();
@$dom->loadHTML($page);
$followerslink = $html->getElementById('current-followers-value');
echo $followerslink->item(0)->nodeValue;
echo "<br />";
?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/tkmot
function name: (null)
number of ops: 22
compiled vars: !0 = $username, !1 = $page, !2 = $dom, !3 = $followerslink, !4 = $html
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, 'selenagomez'
30 1 CONCAT ~6 'http%3A%2F%2Finstagram.myhacks.net%2Fprocessing_request.php%3Fusername%3D', !0
2 ASSIGN !1, ~6
31 3 NEW $8 'DOMDocument'
4 DO_FCALL 0
5 ASSIGN !2, $8
32 6 BEGIN_SILENCE ~11
7 INIT_METHOD_CALL !2, 'loadHTML'
8 SEND_VAR_EX !1
9 DO_FCALL 0
10 END_SILENCE ~11
35 11 INIT_METHOD_CALL !4, 'getElementById'
12 SEND_VAL_EX 'current-followers-value'
13 DO_FCALL 0 $13
14 ASSIGN !3, $13
36 15 INIT_METHOD_CALL !3, 'item'
16 SEND_VAL_EX 0
17 DO_FCALL 0 $15
18 FETCH_OBJ_R ~16 $15, 'nodeValue'
19 ECHO ~16
37 20 ECHO '%3Cbr+%2F%3E'
41 21 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
141.45 ms | 941 KiB | 13 Q