View-Source + PHP or JS

Asked

Viewed 259 times

1

Hello, I am a new student in this area and would like to know how I copy the view-source code into a textarea, it is only a question for studies and in the future I intend to make a security system about ...

Example: I have the link google.com and when you press Ctrl+u opens the link view-source:http:google.com what I want is to take this code the way this, because sometimes it comes with information from the database or even the cookie, i need to pick up the code and put in a textarea of a host.

I managed to use Curl and he even does what I want, but it doesn’t show some information that the view-source would show as something in the cookie...

  • 1

    The URL shows you everything about the request and response, in relation to cookies this will be in the headers: https://curl.haxx.se/docs/manpage.html. Shows much more than the source view. You can even hack less secure systems with Curl, https://www.google.pt/search?q=hacking+com+with+with+curl&oq=hacking.com+with.com+with.com+curl&aqs=chrome.1.69i57j33.6160j4&client=ms-android-huawei&sourceid=chrome-mobile&ie=UTF-8. If you do curl -v http://wwe.ex.com you see the headers and all the cookies, plus the body of the answer

  • i know,but I need the information on a php page within a textarea

  • then you have to parse the html, if it is static you have a good example here http://stackoverflow.com/questions/3627489/php-parse-html-code, if you are going to use php

  • what I want and really take everything oq this in the view-source and pass to a textarea on a different site, example taken from google.com and put in the textarea of a host my ;) type displaying the code in a textarea, I tested with a site a little while ago and until q run the method q did,but where there was supposed to be information that not six and is database or cookie, did not appear walk, but in view-source appears

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.