Ok I need a script in php or perl. I need it to spoof the header referrer on form submit. I also need it to grab session id.
Basically what I have is the following.
I have a form placed on my site that originates from an other site. The original site's form looks like this
form name="formname" method="post" action="[url removed, login to view]"
I took this form and placed it on my site and changed the [url removed, login to view] to the full url path.
The following is how it looks on my site.
form name="formname" method="post" target="rightFrame" action="[url removed, login to view]"
The other site is starting to get picky about this and can trace the submits from my site through the access log referrer information.
I need to spoof the referrer information to make it look like the form is being submitted from it's original page location on the other site.
I also need to retrieve the session id. The other site uses sessions on each page load and the forms won't submit from my site without these session's inserted into the form elements. I can't manually insert these session id's because the session id changes on each new page load. Once the previous page's session id was used then it's no longer valid or if the page was refreshed or a link was clicked to go to a different page, a new session id is created making the previous one invalid.
Here is how my site and the other site works.
I will go to my site [url removed, login to view] and login. Once I am logged into my site, the other site is shown in the right frame. I then login to the other site in the right frame to my account that exists on the other site.
Once I am logged into both my site and the other site, then I am ready to submit the form.
the form submits messages to members accounts on the other site. So once I click the submit button the form will submit to member A on the other site and when the setInterval clicks the submit button again, the form will submit to member B and so on.
After the form submits, the right frame shows the result that the message was successfully sent and then returns to that members home page.
I will need the referrer information spoofed to make it look like the form was submitted from the actual members page where the form originally resides.
So for instance, if the setInterval is submitting to member A, I will need the referrer spoofed like this [url removed, login to view] but if the setInterval is submitting to member B then I need the referrer to be [url removed, login to view]
In my site I can set options to send in sequence or in random order to the members on the other site. This means that if I set the option to submit in sequence then the setInterval will submit to member A then to member B then to member C. If the option is set to random, then the setInterval will submit to member C then to member F then to member R etc.
I hope this gives you enough information to know how to write the script to spoof the referrer information correctly.
I don't want a hack job. I need this script to be professional and work correctly. My goal is to have my site completely untraceable and to make it look like my site is not being used at all to submit these forms.
I need to make it look like the form is being submitted from the other site as though I am clicking the submit button on the form residing on the other site.
You will probably need to use xmlHttpRequest to insert the session id into the form on my site once the session id is properly retrieved from the php or perl script that parses the other site.
Only bid if you know what you are doing and can write this script successfully without being traced by the other site.
One last thing. If possible I don't want my site to change at all or the way the login works. I still want it set up to where I have to login to my site to access the form and then login to the other site in the right frame after I have logged into my site.