Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. Action()
  4. {
  5. int main();
  6. int i;
  7. int count;
  8. char* flightList;
  9. char* temp;
  10. char* tempFlight;
  11. char* cgiList;
  12. char* CGI;
  13. char* tempCGI;
  14.  
  15. web_set_max_html_param_len("61440");
  16. login();
  17.  
  18. web_revert_auto_header("DNT");
  19.  
  20. web_add_auto_header("DNT",
  21. "1");
  22.  
  23. web_add_auto_header("Upgrade-Insecure-Requests",
  24. "1");
  25.  
  26. web_reg_save_param_ex("ParamName=c_flightids",
  27. "LB=<input type=\"hidden\" name=\"flightID\" value=\"",
  28. "RB=\" /",
  29. "Ordinal=all",
  30. SEARCH_FILTERS,
  31. "Scope=body",
  32. LAST);
  33.  
  34. web_reg_save_param_ex("ParamName=c_cgifields",
  35. "LB=\"hidden\" name=\".cgifields\" ",
  36. "RB=\" /",
  37. "Ordinal=all",
  38. SEARCH_FILTERS,
  39. "Scope=body",
  40. LAST);
  41.  
  42. web_url("Itinerary Button",
  43. "URL=http://127.0.0.1:1080/cgi-bin/welcome.pl?page=itinerary",
  44. "TargetFrame=body",
  45. "Resource=0",
  46. "RecContentType=text/html",
  47. "Referer=http://127.0.0.1:1080/cgi-bin/nav.pl?page=menu&in=flights",
  48. "Snapshot=t178.inf",
  49. "Mode=HTML",
  50. EXTRARES,
  51. "Url=http://detectportal.firefox.com/success.txt",
  52. "Referer=", ENDITEM,
  53. LAST);
  54.  
  55.  
  56. lr_save_string("", "c_buffer");
  57.  
  58. for (i=1;i<=2;i++)
  59. {
  60. lr_param_sprintf("c_buffer", "%s%d=on&", lr_eval_string("{c_buffer}"), i);
  61. }
  62.  
  63.  
  64. lr_param_sprintf("c_buffer",
  65. "%s=on&",
  66. lr_eval_string("{c_flightids_count}"));
  67.  
  68.  
  69. for (i=1;i<=atoi(lr_eval_string("{c_flightids_count}"));i++)
  70. {
  71. lr_param_sprintf("c_buffer",
  72. "%sflightID=%s&",
  73. lr_eval_string("{c_buffer}"),
  74. lr_paramarr_idx("c_flightids",
  75. i));
  76.  
  77. lr_param_sprintf("c_buffer",
  78. "%s.cgifields=%s&",
  79. lr_eval_string("{c_buffer}"),
  80. lr_paramarr_idx("c_cgifields",
  81. i));
  82. }
  83.  
  84.  
  85. lr_save_string(lr_eval_string("{c_buffer}removeFlights.x=36&removeFlights.y=4"), "c_wcr");
  86.  
  87.  
  88.  
  89. lr_save_string(lr_eval_string(lr_eval_string("{c_flightids_{c_flightids_count}}")),
  90. "c_cancelflight");
  91.  
  92. web_reg_find("Text={c_cancelflight}", "Fail=Found", LAST);
  93.  
  94.  
  95. web_custom_request("itinerary.pl_2",
  96. "URL=http://127.0.0.1:1080/cgi-bin/itinerary.pl",
  97. "Method=POST",
  98. "Resource=0",
  99. "RecContentType=text/html",
  100. "Referer=http://127.0.0.1:1080/cgi-bin/itinerary.pl",
  101. "Snapshot=t23.inf",
  102. "Mode=HTTP",
  103. "Body={c_wcr}",
  104. LAST);
  105.  
  106. web_url("SignOff Button",
  107. "URL=http://127.0.0.1:1080/cgi-bin/welcome.pl?signOff=1",
  108. "TargetFrame=body",
  109. "Resource=0",
  110. "RecContentType=text/html",
  111. "Referer=http://127.0.0.1:1080/cgi-bin/nav.pl?page=menu&in=itinerary",
  112. "Snapshot=t139.inf",
  113. "Mode=HTML",
  114. LAST);
  115.  
  116. return 0;
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement