Guest User

zenno

a guest
Dec 23rd, 2021
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. Run something like this in zenno
  2. (It doesn't have to be something that is executed when a request is sent or received, but it would be useful for debugging, etc.)
  3. instance.onrequest(request){
  4. if (request.url.contains("https://example.com/sourcecode.js")&&request.isending){
  5. request.isspoofreceive = true;
  6. request.receivedata = "Hello"
  7. }
  8. }
  9. And the one that would be executed in the browser
  10. <script type="text/javascript" src="https://example.com/sourcecode.js"></script>
  11. or a request for javascript, etc.
  12. And I want the incoming data of these requests to be Hello and to be received even if offline or proxy is dead
  13.  
  14. browser -> send request -> cancel due to events or other actions in zennoposter -> receive saved request (nothing is actually sent to the server) -> receive request -> browser
  15. And.
  16. browser -> send request -> request event -> request with changed url, post content, etc -> web server -> request event -> received content -> browser
  17.  
  18. It would be nice if the request event had the ability to change all url , content data, headers, etc. and hook into it both after and before sending (this could be a feature that I would like to see added).
Advertisement
Add Comment
Please, Sign In to add comment