1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need simple script for method

Discussion in 'General Scripting Chat' started by yuppie, Jul 11, 2011.

Tags:
  1. yuppie

    yuppie Newbie

    Joined:
    Apr 30, 2009
    Messages:
    29
    Likes Received:
    1
    Occupation:
    Self Employed
    Location:
    USA
    Home Page:
    I need a simple script to do this:

    1.User fills out form on Site A then clicks submit
    image = hxxp://i53.tinypic.com/2jer9xl.jpg

    2. Script takes the input from form then fills out another form on Site B and clicks submit (user not suppose to see Site B form).
    image = hxxp://i51.tinypic.com/332xl5k.jpg
    3. User will end up on Site B results page (user will see this)

    Need more info just ask Thanks.

    Alot should find this useful!
     
  2. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    My thread can be adapted:
    http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/280146-tutorial-auto-fill-submit-cpa-forms.html
     
    • Thanks Thanks x 1
  3. yuppie

    yuppie Newbie

    Joined:
    Apr 30, 2009
    Messages:
    29
    Likes Received:
    1
    Occupation:
    Self Employed
    Location:
    USA
    Home Page:
    Checked out your thread but that's not what I was looking for. Do not need injection need script to autofill and click that's it. Ps. I'm not a programmer lol

    I do see uses for the injection though will try that out on some other things.


    Any one else looking, I still need this.
     
  4. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Smh.

    Do you own site B? If you don't own site B, the only way to get the data into their form is via the injection I just posted.

    What kind of site is site B? If it's just something like an opt-in and not any kind of money-making (CPA, etc.) form, then you can post to the form with cURL, but if makes you money in any way, you can't do this because your server's IP will show every time. I can help you with the cURL if need be.
     
    Last edited: Jul 11, 2011
  5. yuppie

    yuppie Newbie

    Joined:
    Apr 30, 2009
    Messages:
    29
    Likes Received:
    1
    Occupation:
    Self Employed
    Location:
    USA
    Home Page:
    Yeah I own site A and B
    I'll be sending traffic to site A they fill out form then script goes to site b fills t out then clicks submit, User ends up on site b results page


    What does Smh mean?
     
    Last edited: Jul 11, 2011
  6. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Then why don't you just change the action of form A to the processing/results page of form B...?
     
  7. yuppie

    yuppie Newbie

    Joined:
    Apr 30, 2009
    Messages:
    29
    Likes Received:
    1
    Occupation:
    Self Employed
    Location:
    USA
    Home Page:
    I want both forms filled out. Also note I'm going to be doing this with all different types of forms (many of them) and want something I can just upload or copy paste into site instead of changing code every time.
     
  8. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Well, I would just process form A then redirect to the processing page of site B, bypassing the actual form on site B altogether, because it's just an added obstacle. So:

    Process form A:
    PHP:
    <?
    $firstName $_POST['first_name'];
    $lastName $_POST['last_name'];
    $phone $_POST['phone'];
    $email $_POST['email'];

    // process data

    // send data and redirect to site B
    header("Location: http://www.siteb.com/process.php?ref=siteA&first_name=" urlencode($firstName) . "&last_name=" urlencode($lastName) . "&phone=" urlencode($phone) . "&email=" urlencode($email));
    ?>
    Then to process form B (process.php):
    PHP:
    <?
    // if data is from site A, process it as needed, else process it like normal
    if ((isset($_GET['ref'])) && ($_GET['ref'] == "siteA")) {
         
    $firstName urldecode($_GET['first_name']);
         
    $lastName urldecode($_GET['last_name']);
         
    $phone urldecode($_GET['phone']);
         
    $email urldecode($_GET['email']);
    } else {
         
    // do whatever you would normally do if form B was actually filled out
    }

    // process data
    // show results or whatever else you need to do
    ?>
    Notice the ref=siteA in the header redirect of the form A processing file. This tells site B that you're submitting data from form A into the process page of form B, letting you handle the data differently than if the user was actually filling out form B on their own, if need be.
     
    Last edited: Jul 12, 2011
  9. yuppie

    yuppie Newbie

    Joined:
    Apr 30, 2009
    Messages:
    29
    Likes Received:
    1
    Occupation:
    Self Employed
    Location:
    USA
    Home Page:
    Let me give an Example of another setup, This time Site B is not a form but a newsletter signup

    User fills out form on site A
    Scripts takes info goes to site B autofills email then clicks submit
    User ends up on site B results(ending page)
    User never sees site's B Submit page

    So I can not just bypass Site B form etc.

    Oh yeah the script going to need to parse site b page to find form (because it will have other content on the page)


    ps If there are other threads bout auto fill and click let me know I could not find any for what I'm looking for

    Oh yeah thanks for the effort :)
     
    Last edited: Jul 12, 2011