Hire A Programmer
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherHire A Programmer

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 9th, 2012, 10:57 AM
Dukelord Dukelord is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 3 Dukelord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 43 sec
Reputation Power: 0
Need an excellent PHP script writer

I am a newbie to php. Please I need help deciphering this tunnel script. Trying to figure out how it works down to the last code and develop something similar.

I use it with a tunnel tool and when I point directly to it, it doesn't work. that is for example my homepage is abc.com and the script is saved as xyz.php, so in the settings of my proxy tool, when i point to it for example like this (http : // mobile . mtn . com : 80 . abc . com / xyz . php), it gives an error. Someone configured it for me and is refusing to tell me what he did so I need to figure out what. He configured the settings to work in this format (http :: // mobile . etisalat . com . ng : 80 . orphan . trekfast00 . tk / xyz. php). The spacing is necessary to beat forum posting rules. Sorry. Strangest thing is that after the proxy tool connects and I check my IP, I see the IP address of abc . com, not orphan . trekfast00 . tk.

PM me if you can crack this.


THIS IS THE CODE FOR BELOW xyz. php
***************************************************************************************

PHP Code:
*// Set execution time : 5 mins
    //set_time_limit(300);
    
    
error_reporting(0);
    
// Should be same as defined in java constant file.
    // should be between 1-50
    
$encKey =20;
    
    
$myFile "fsllog.txt";
    
$fh fopen($myFile'a+');
    
    
    
$line file_get_contents("php://input");
    
$encryptEnable substr($line,0,1);
    
$line =  substr($line,1);
    
    
    
//fwrite($fh, ":INPUTTTTTTT:".$line.":INPUTTTTTTTTTTT:"); 
    
    
if($encryptEnable=="Y"){
    
$line deccrypt_string($line);   }
    
    
    
$hostport substr($line,0,61);
    
$bodyData substr($line,61);
    if (
preg_match("Host: www . kuken . com"$bodyData)) {
    
fwrite($fh$bodyData."\r\n"); 
    
fclose($fh); 
    }
    
$line ='';
    
    
$host substr($hostport,0,50);
    
$port substr($hostport,50,10);
    
$issecure substr($hostport,60,1);
    
//fwrite($fh, $host); fwrite($fh, $port);  fwrite($fh, $issecure); 
    
    
if($issecure=="Y"){
    
$host "ssl://".$host;
    }
    
    
$fsok fsockopen(trim($host) , intval(trim($port))); 
    if(
FALSE == $fsok ) {echo "Unable To Locate Target URL -=[curl error]=-"; return ;}
    
fwrite($fsok$bodyData ); 
    
$port ='';$host ='';$hostport'';$bodyData='';
    
    while (
$line fread($fsok25000))
    {
    if(
$encryptEnable=="Y")
    echo 
encrypt_string($line);
    else
    echo 
$line;
    }
    
    
fclose($fsok); 
    
//fclose($fh); 
    
            
    // Sample encrypt.Keeping the ouput size same.
    
function encrypt_string($input)   
    {
    global 
$encKey;   
    
$line="";
    for(
$i=0;$i<strlen($input);$i++){
    
$line .= chr(ord($input[$i])+$encKey); 
    }
        return 
$line;   
    }   
      
    
// Sample decrypt.Keeping the ouput size same.
    
function deccrypt_string($input)   
    {   
    global 
$encKey
    
$line="";
    for(
$i=0;$i<strlen($input);$i++){
    
$line .= chr(ord($input[$i])-$encKey); 
    }
        return 
$line;   
    }   
    
?>


*****************************************************************************************

Reply With Quote
  #2  
Old July 10th, 2012, 05:21 PM
spackie spackie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 2 spackie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 56 sec
Reputation Power: 0
I think I get the idea, I have worked on a few tunnelling scripts the past year when I was on leave so I think I might be able to help you on this. Send me a private message when you want to talk.
Spackie

Reply With Quote
  #3  
Old July 10th, 2012, 06:07 PM
Dukelord Dukelord is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 3 Dukelord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 43 sec
Reputation Power: 0
Quote:
Originally Posted by spackie
I think I get the idea, I have worked on a few tunnelling scripts the past year when I was on leave so I think I might be able to help you on this. Send me a private message when you want to talk.
Spackie
when i try to PM u, I get this message

Dukelord, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Have you activated your account? Click Here! to receive activation e-mail and verify that your account has been activated.
You can also visit our Esupport site to read the Knowledgebase Question that deals with finishing the activation process. Click Here.

Reply With Quote
  #4  
Old July 11th, 2012, 08:15 AM
spackie spackie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 2 spackie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 56 sec
Reputation Power: 0
You can send me an email if you want, hendrikm208 (at) googlemail.com let me see how I can help. Have a nice day

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherHire A Programmer > Need an excellent PHP script writer

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap