Mukezh

1.SCRIPTING LANGUAGES

Nov 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. WEB SECURITY MISCONCEPTIONS
  2. ==========================
  3.  
  4.  
  5. SCRIPTING LANGUAGES
  6. ===================
  7.  
  8. Methods used in Scripting Languages
  9. ===================================
  10.  
  11. 1. GET = It shows Data which is being traveled from Server to Clients in the URL only. It is the unsecured method of data travelling between client and server.
  12.  
  13. 2. POST = It doesn't show anything in the URL that fromwhere that data is travelling.
  14.  
  15.  
  16.  
  17.  
  18. Client Side Scrippting
  19. ======================
  20. The scripting programming language we are gonna be using is HTML.
  21.  
  22. HTML --> Hyper text markup language
  23. ====
  24. Hyper Text Transfer Protocol
  25. ||
  26. Hyperlinks
  27.  
  28.  
  29. This is the application used for creating client side web pages.
  30.  
  31. HTML PRACTICALS
  32. ================
  33.  
  34. 1. Starting of html scripting
  35. <html>
  36. ...
  37. ... Tell me the code written is in HTML
  38. ...
  39. </html>
  40.  
  41. <head>
  42. ..
  43. .. It is used to define the header like title of the web page,name in the tab
  44. </head>
  45.  
  46. <title> ......
  47. Name of the Title
  48. ...</title>
  49.  
  50. <body>
  51. ...
  52. ... Used for the content of the web page
  53. ...
  54. </body>
  55.  
  56. 5. Heading = Used to provide the heading
  57. <h1> - <h6>
  58. As the number increases the font size decreases.
  59. <h1>Heading</h1>
  60. <h2>Heading</h2>
  61. <h3>Heading</h3>
  62.  
  63.  
  64. HTML TAGS
  65. =========
  66.  
  67. <p> = Paragraph
  68. <br> = Break Statement
  69. <ul> = Helps in indentation
  70. <ahref> = Hyperlink Reference
  71. <b> = Bold
  72. <btn> = Button
  73. <a> = Action
  74. <li> = Line
  75. <h1> = Heading
  76. <imgsrc> = Image Source
  77. <form action> = Form Clicking Action
  78.  
  79.  
  80. Basicpage.html
  81. ==============
  82. <html>
  83. <head>
  84. <title>Basic</title>
  85. </head>
  86. <body>
  87. <a href="http://www.lucideus.com"><h1>Ethical Hacking</h1></a>
  88. <h2>Black Hat Hacker</h2>
  89. <p>These are the bad guys.<br>
  90. They Just Work For money.<br>
  91. They bring chaos to the cyber world.<br>
  92. Very Very Bad guys.</p>
  93. <h2>White Hat Hacker</h2>
  94. <h3>Script Kiddies</h3>
  95. <h3>N00bZ</h3>
  96. <img src="pooh.jpg">
  97. <form action="secpage.html">
  98. First Name: <input type="text"><br>
  99. Last Name : <input type="text"><br>
  100. Username : <input type="text"><br>
  101. Password : <input type="password"><br>
  102. <input type="submit" value="submit">
  103. </form>
  104. </body>
  105. </html>
  106.  
  107. =============
  108. Secpage.html
  109. =============
  110. <html>
  111. <head>
  112. <title>Welcome</title>
  113. </head>
  114. <body>
  115. <h1>Hello user, you are welcome to my web site</h1>
  116. </body>
  117. </html>
  118.  
  119.  
  120.  
  121.  
  122. ** NOTE : Its not neccessary to close the tags i.e. </html> or </body>
  123. the browser will automatically close it during its running state.
  124. -------------------------------------------------------------------------------------
  125.  
  126. Server Side Scripting
  127. =====================
  128.  
  129. This language is only used to maintain and coonfigure Server Side Scripting. eg. PHP
  130.  
  131.  
  132.  
  133. PHP
  134. ===
  135. <?php = Showing the starting of a php code
  136. ?> = It is the end of the php code
  137. $ = to create a variable
  138.  
  139. variable is a datatype in which we are stroring a value.
  140. $number = It is a variable and I can store anything in it.
  141. For Printing = "echo"
  142. echo "Welcome to Lucideus"
  143.  
  144. -----------------------------------------------------------------------------------------
  145.  
  146. Program of Addition of two numbers Through PHP and HTML
  147. =======================================================
  148.  
  149. HTML CODE = hello.html
  150.  
  151. <html>
  152. <head>
  153. <title>Hello</title>
  154. </head>
  155. <body>
  156. <form action=calc.php method="post">
  157. First Number <input type="text" name="first" id="first"><br>
  158. Sec Number <input type="text" name="sec" id="sec"><br>
  159. <input type="submit">
  160. </form>
  161. </body>
  162. </html>
  163.  
  164. PHP CODE = calc.php
  165.  
  166. <html>
  167. <head>
  168. <title>add</title>
  169. </head>
  170.  
  171. <body>
  172. <?php
  173. $one = $_POST['first'];
  174. $two = $_POST['sec'];
  175. $sum = $one + $two;
  176. echo "The sum is";
  177. echo $sum;
  178. ?>
  179. </body>
  180. </html>
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194. WEBSITES TO PRACTISE:
  195.  
  196. 1.w3school.com
  197. 2.Tutorialpoint.com
Add Comment
Please, Sign In to add comment