patch for SSL hooked websites

The if line bellow should be commented after the browser is hooked :

"
     console.log('beef.net.send'+ typeof results + " " + typeof "aaa");
 	114	
+      if(results && typeof results=="string")  // this line should be commented after hooking the browser because line bellow throws an error
 	115	
+  results = results.replace("https://","http://");
"

, it says that results is a beef.net.sendobject  and does not have replace method. After hooking "results" it is a string object and you should comment it. did not know how to handle that.


what the line does is replace the https links with http, so i can browse nicely from my proxy:)
I access all link with "http" and the zombie converts them to https when making the request. In the response it converts them back to http before sending back.