How to Submit form with refferer?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
jclarkkent2003
Forum Contributor
Posts: 123
Joined: Sat Dec 04, 2004 9:14 pm

How to Submit form with refferer?

Post by jclarkkent2003 »

Hi guys,
Say there is this REALLY common form (script) that a bunch of people use, and I want to make a quick php or PERL or whatever script (I prefer php but whatever will work I will learn) that can I can set my information, so It has the username I use and password and my address, email address, phone number, all that, TONS of FIELD variable's which I want to predifine, and I can simply do something like


php -q http://www.location-of-the-form.com/singup-contact.php ref=http://www.location-of-the-form.com/singup-contact.php

and it will work just as if I had went to their website and filled out the form, I have already tried using a simple html FORM and it POSTS to their form location, but it gets rejected or fails or something goes wrong and it never works, I believe because the refferer is completely wrong.

How can I set the refferer variable so it appears just as if I had submitted it right on their site?


ADDITIONAL questions, if you know the answers:

1. How can I setup a proxy so my personal computer's ip address is NOT shown when I run a cmd statement or something, like is it possible to connect to a remote proxy for that so i'm anonymous?

2. (not sure if this is even possible), but is it possible to make a php or perl or whatever script to like SIGNUP for an account at a (vbulletin/invision power board/phpbb), where I can set ALL the variables (username and password, email address, etc) in advance, and all I have to do is open cmd and run a statement like:

php -q http://www.location-of-the-forUm.com/signup.php ref=http://www.location-of-the-forUm.com/signup.php
and it makes the account for me, that way I can like register at new forums in seconds instead of having to visit each forum, and verify my age gateway thing and then fill out all the variables in the form or use autocomplete to do it, I prefer something command line based or saved in an actual FILE (because I clear auto complete daily and I don't have it turned on alot of the time).

Thanks for your guys replies (HOPEFULLY)~!!!
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

cURL is your friend.

Additional questions:
1) I see no point, but Google for it.
2) Yes, to some extent. If they have visual or email confirmations, youre stuck (well, the email verification part can be solved also but that can't be fun to code).

I however, see no point in why someone might want this to be possible. Can you explain more indepth of why you want to do this? Intrigue us.
jclarkkent2003
Forum Contributor
Posts: 123
Joined: Sat Dec 04, 2004 9:14 pm

Post by jclarkkent2003 »

well i would like to be able to register forum accounts with alot more easeness, I mean right now i'm restricted to a few forums cause I just HATE going through the entire forum sign up proceedure, and if I could just run a simple command at dos command prompt and the forum's url, and then checking my email for verification isn't as much a problem.

Its all about motivation, I'm just not motivated to enter my data every time I see a new forum, copying and pasting the url of the forum into dos and hitting enter could NOT be easier, I mean it would take all the pressure of registering away, I could post anywhere I wanted without having to think "do I have an account there, gosh I really don't want to have to go through all the crap to register just to post one or two times."

And the proxy question, I see a VERY big point in it and I have googled it but I find nothing because the terms are too broad. Everyone want sto retain a high level of anonymity, I don't like leaving my ip address in logs where people will go through and ping and possibly try to hack, it happens alot more than you might think and I just like to be invisible, period.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Having some script automaticly signup on boards exists (just think of the spiders harvesting mail addys, posting ads etc etc), so sure, it can be done.

But writing such script would take up more of your time than manually register at those sites, unless you of course need to be registered at 50+ forums...

Proxys... Yes, as you noticed the area is rather broad, hence the reason that I doubt you'll find anyone here talking you through it (I hpe I'm wrong tho, don't get me wrong). Using this board to guide you in all aspects of how and why a proxy works and should be setup would take approx. 20 pages alone, depending on level of anonymity, software being used, tunneling prefs, os's aso aso.
Hence the google referal. You alone know how much effort you want to put into it, you alone know what you have around you (net speed, servers, hardware) to accomplish this.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

!firefox++ and auto-form-completion ;)
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

THANKSSSsss to the "confirmation codes" ...lolz --- if you are doing something you are not supposed to do, then you know what I meant by "confirmation codes" :roll: :roll: :roll:
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

The kind of activity you intend on doing sounds as it would be infringing on netiquette.

Please send JAM or me a PM to discuss this. If I am mistaken, the thread will of course be unlocked.
Locked