Difference between revisions of "ArashLari Week 3"

From LMU BioDB 2017
Jump to: navigation, search
(With Developer Tools)
(Hacking A Webpage)
Line 1: Line 1:
== Hacking A Webpage ==
+
= Hacking A Webpage =
 
I replaced an image and edited some text on the White House website.
 
I replaced an image and edited some text on the White House website.
 
===With Developer Tools===
 
===With Developer Tools===
Line 5: Line 5:
 
===With No Developer Tools===
 
===With No Developer Tools===
 
[[File:BoratNoDev.png | x600px]]
 
[[File:BoratNoDev.png | x600px]]
 +
 +
= The Genetic Code =
 +
== curl command ==
 +
curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa
 +
== Question Response ==
 +
# The page referred to a couple of stylesheets (sib.css, base.css, sib_print.css) which from what I can tell control the formatting of the webpage. The main internal server it communicates with would be http://web.expasy.org/cgi-bin/translate/dna_aa which talks to a few internal servers for each step of the translation as well, this is the part of the web app that does all the heavy lifting.
 +
 +
#  While there are lots of identifiers throughout the html document, the one's we really used were "textarea name=pre_text" and "action=/cgi-bin/translate/dna_aa". However there were plenty of other identifiers like anything with "sib" in the title, or the "select name=code" and "select name=output" which control the kind of genetic code and output format respectively.

Revision as of 00:22, 18 September 2017

Hacking A Webpage

I replaced an image and edited some text on the White House website.

With Developer Tools

BoratWithDev.png

With No Developer Tools

BoratNoDev.png

The Genetic Code

curl command

curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa

Question Response

  1. The page referred to a couple of stylesheets (sib.css, base.css, sib_print.css) which from what I can tell control the formatting of the webpage. The main internal server it communicates with would be http://web.expasy.org/cgi-bin/translate/dna_aa which talks to a few internal servers for each step of the translation as well, this is the part of the web app that does all the heavy lifting.
  1. While there are lots of identifiers throughout the html document, the one's we really used were "textarea name=pre_text" and "action=/cgi-bin/translate/dna_aa". However there were plenty of other identifiers like anything with "sib" in the title, or the "select name=code" and "select name=output" which control the kind of genetic code and output format respectively.