Guest User

Fiddler Code

a guest
Jul 23rd, 2020
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import System;
  2. import System.IO;
  3. import System.Threading;
  4. import System.Web;
  5. import System.Windows.Forms;
  6. import Fiddler;
  7.  
  8. class Handlers
  9. {
  10. static function OnBeforeRequest(oSession: Session) {
  11. if (oSession.hostname.Contains(".ol.epicgames.com"))
  12. {
  13.  
  14. if (oSession.HTTPMethodIs("CONNECT"))
  15. {
  16. oSession["x-replywithtunnel"] = "FortniteTunnel";
  17. return;
  18. }
  19. oSession.fullUrl = "http://127.0.0.1" + oSession.PathAndQuery;
  20. }
  21. }
  22. static function OnBeforeResponse(oSession: Session) {
  23. oSession.utilDecodeResponse();
  24. if (new String(oSession.GetRequestBodyAsString()).Contains("profileTokens")) {
  25. Thread.Sleep(-1);
  26. }
  27. }
  28. }
Add Comment
Please, Sign In to add comment