Saznajte HTML code sajta iz Konzole/terminala

Ovo se može saznati iz pregledača pritiskom kombinacije tastera CTRL+U, ali ako volite malo ,hakerskiji’’ način, možete to saznati i iz Konzole.
Sve što treba da uradite je da ukucate:

GET adresa_sajta

desni klik pa “view page source” :wink:

Eto, i to…
3 načina postoje :slight_smile:
Ali je ovaj hakerski :wink:

Za linuks važi pravilo, što jednostavno, kada može extra komplikovano :wink:

To nisi trebao da napišeš javno :slight_smile:
Neka shvate sami :wink:

Kapiram da se i vi osećate ovako kada uradite nešto ultra geek u terminalu pred drugima :wink:

http://finalbossfight.co.uk/wp-content/uploads/2012/02/Like-a-Boss.jpg

Oćeš u opkladu :wink:

To se dokazalo mali milion puta… :wink:
Ko kaže drugačije, taj ne koristi linux :slight_smile:

Ovi programi ne služe samo tome da prikažu source kod sajta, njihova moć se krije u tome što mogu da prikažu ceo sirovi http request i response.

Za ovekve stvari preporučujem čuvenu hakersku alatku curl

sudo apt-get install curl

I zatim uradite ovo:

[code]
[email protected] ~ $ curl -v duckduckgo.com

  • About to connect() to duckduckgo.com port 80 (#0)
  • Trying 46.51.197.88… connected
  • Connected to duckduckgo.com (46.51.197.88) port 80 (#0)

GET / HTTP/1.1
User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
Host: duckduckgo.com
Accept: /

< HTTP/1.1 200 OK
< Server: nginx
< Date: Fri, 09 Mar 2012 07:34:09 GMT
< Content-Type: text/html; charset=UTF-8
< Content-Length: 4485
< Last-Modified: Wed, 07 Mar 2012 15:00:06 GMT
< Connection: keep-alive
< Expires: Fri, 09 Mar 2012 13:34:09 GMT
< Cache-Control: max-age=21600
< Accept-Ranges: bytes
<
DuckDuckGohtml{overflow:hidden}a:visited{color:#1168CC}#t{padding-top:20px}#logo_homepage{background:url(/assets/logo_homepage.normal.v101.png) no-repeat center top}@media only screen and (max-device-width: 599px) {#logo_homepage {background:url(/assets/logo_homepage_mobile.normal.v101.png) no-repeat center top}}@media only screen and (-webkit-min-device-pixel-ratio:1.5){#logo_homepage {background:url(/assets/logo_homepage_mobile.normal.v101.png) no-repeat center top}}

DuckDuckGo

fq=1;ric=0;var karr = new Array(‘a’,‘b’,‘c’,‘d’,‘e’,‘f’,‘g’,‘h’,‘i’,‘j’,‘k’,‘l’,‘m’,‘n’,‘o’,‘p’,‘q’,‘r’,‘s’,‘t’,‘u’,‘v’,‘w’,‘x’,‘y’,‘z’,‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘aa’,‘ab’,‘ac’,‘ad’,‘ae’,‘af’,‘ag’,‘ah’,‘ai’,‘aj’,‘ak’,‘al’,‘am’,‘an’,‘ao’,‘ap’,‘aq’,‘ar’,‘as’,‘at’,‘au’,‘av’,‘aw’,‘ax’,‘ay’,‘az’);for (var i=0;i