MacResource
Anyone know how to peak inside form submissions? - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: Anyone know how to peak inside form submissions? (/showthread.php?tid=19681)



Anyone know how to peak inside form submissions? - mattkime - 09-29-2006

I'm trying to take apart a web app and figure out how it operates, particularly the flow of form information. Yes, this should be simple. Unfortunately there is a lot of javascript in the way. A LOT. I'd like to see what form values are being sent in the end.

Any ideas?


Re: Anyone know how to peak inside form submissions? - mikebw - 09-29-2006

are you dealing with PHP here? I don't know much about it, but some forms will store their value inside the URL / address bar as you navigate around.


Re: Anyone know how to peak inside form submissions? - mattkime - 09-29-2006

thats a "GET" for as opposed to a "POST" form. unfortunately its a POST


Re: Anyone know how to peak inside form submissions? - Tofer - 09-29-2006

Suggestion 1: You probably already have tried this, but search for the
tags, and then step through it from there. If there aren't any tags, it is probably handled via javascript in a separate file, which you should be able to find. Do another search in that file for and go with it.

Suggestion 2: Download the application called Eavesdrop, which captures all the data going to/from your internet connection. Post a form and check the output, and you'll get everything you need.

http://www.versiontracker.com/dyn/moreinfo/macosx/24420

-Tofer


Re: Anyone know how to peak inside form submissions? - TheTominator - 09-29-2006

Edit a copy of the page and make the form action a script that you control. In the new receiving script, print out the submitted values. How you do that depends on the language. Using PHP as the receiving language, print out all the values of $_POST[] using something like this:
echo "
    \n";
    foreach ($_POST as $key => $value) {
    echo "
  • $key = $value
  • \n";
    }
    echo "
\n";


Re: Anyone know how to peak inside form submissions? - Seacrest - 09-29-2006

In addition to what Tom says, FireFox->WebDevXT->Forms can be helpful.


Re: Anyone know how to peak inside form submissions? - mattkime - 09-29-2006

The Tamper Data extension is what I needed. Its quite nice, even lets you set cookies.


Re: Anyone know how to peak inside form submissions? - TheTominator - 09-29-2006

[quote mattkime]even lets you set cookies.
Mmmmm.... Cookies.

If it also comes with Java, that would go well with cookies.


Re: Anyone know how to peak inside form submissions? - comphernation - 10-01-2006

Matt,

A fine general purpose sniffer is the free utility "tcpflow" (http://www.circlemud.org/~jelson/software/tcpflow/) which breaks the flow of packets into human-readable form. I've found it invaluable for deciphering numerous back-and-forth exchanges. An HTML version of the manpage can be found at http://www.circlemud.org/~jelson/software/tcpflow/tcpflow.1.html.

This tutorial http://www.owlriver.com/tips/tcpflow-tutorial/ might be helpful to get you started.