Guest User

Untitled

a guest
Mar 12th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. (function(){
  2. var post_to_url = function(path, params, method) {
  3. var openWindow = window.open(path);
  4. method = method || "post";
  5. var form = openWindow.document.createElement("form");
  6. form.setAttribute("method", method);
  7. form.setAttribute("action", path);
  8. for(var key in params) {
  9. var hiddenField = document.createElement("input");
  10. hiddenField.setAttribute("type", "hidden");
  11. hiddenField.setAttribute("name", key);
  12. hiddenField.setAttribute("value", params[key]);
  13. form.appendChild(hiddenField);
  14. }
  15. openWindow.document.body.appendChild(form);
  16. form.submit();
  17. };
  18. post_to_url(
  19. 'http://www.chronopost.fr/transport-express/livraison-colis/engineName/search/accueil/suivi',
  20. {search:'test'});
  21. })()
  22.  
  23. (function(){
  24. var post_to_url = function(path, params, method) {
  25. method = method || "post";
  26. var form = window.document.createElement("form");
  27. form.setAttribute("method", method);
  28. form.setAttribute("action", path);
  29. for(var key in params) {
  30. var hiddenField = document.createElement("input");
  31. hiddenField.setAttribute("type", "hidden");
  32. hiddenField.setAttribute("name", key);
  33. hiddenField.setAttribute("value", params[key]);
  34. form.appendChild(hiddenField);
  35. }
  36. window.document.body.appendChild(form);
  37. form.submit();
  38. };
  39. post_to_url(
  40. 'http://192.168.0.1/goform/login',
  41. {loginPassword:'password',loginUsername:'admin'});
  42. })()
  43.  
  44. javascript:'<html><body onload="document.forms[0].submit()"><form action="http://www.example.com" method="POST"><input name="whatever" value="whatever" type="hidden"></form></body></html>'
  45.  
  46. file:///C:/getToPost?name1=value1&name2=value2#http://url.com/service
  47.  
  48. <html><body><script>
  49. function dopost() {
  50. var form = document.createElement("form");
  51. form.setAttribute("method", "post");
  52. form.setAttribute("action", har["request"]["url"]);
  53. var params = har["request"]["postData"]["params"];
  54. for(var e in params) {
  55. var hiddenField = document.createElement("input");
  56. hiddenField.setAttribute("type", "hidden");
  57. hiddenField.setAttribute("name", params[e]["name"]);
  58. hiddenField.setAttribute("value", params[e]["value"]);
  59. form.appendChild(hiddenField);
  60. }
  61. document.body.appendChild(form);
  62. form.submit();
  63. }
  64. window.onload=dopost;
  65.  
  66. var har=
  67. //-----PASTE HERE------
  68.  
  69. </script>
  70. </body></html>
  71.  
  72. javascript:'
  73. <html><body%20onload="document.forms[0].submit()">
  74. <form%20action="https://wwwapps.ups.com/WebTracking/track"%20method="POST">
  75. <input%20name="trackNums"%20value="%s"%20type="hidden">
  76. <input%20name="track.x"%20value="anything"%20type="hidden">
  77. </form>
  78. </body></html>'
Add Comment
Please, Sign In to add comment