Forum Replies Created
- AuthorPosts
- carter.james199Participant
Ok Diego thank you for the help Fr
After some further testing today you rlly helped and I got it running on python 2.7 effectively. I guess something else I should’ve mentioned was that I am trying to get this to run on python 3.8. Knowing this is there anything that jumps out to you that I should change because without any modifications running this on python 2.7 interpreter it worked perfectly and I thought I changed the code for Python 3.carter.james199ParticipantI tried on a different http website the site u have me to test the file interceptor. Just to see if it was the site that was holding me from loading. And it still didn’t work now I just also got 404 bad request responses. Why is that?
carter.james199ParticipantHi Diego,
Thank you for your help that defiantly did fix some errors. But I don’t know if it’s due to my network or my computer connection, but it still holds the browser up from loading the page. I get some responses in my terminal saying “501 not implemented” and the browser gets stuck on a white loading page. Also I get this index error every once and a while saying there was no tcp layer found?carter.james199ParticipantOk thanks
looking forward to hearing from youcarter.james199ParticipantCode Injector
https://pastebin.com/WF9jfUgqcarter.james199ParticipantDiego, I have been using the website.org site to test the code injector. Obviously I’m not trying to inject code into the Firefox homepage. After I start the python script to capture packets from the website I then go to my browser and put in Website.org. The code I’m running doesn’t yet change any website HTML it only modifies the load, so I can get the HTML elements in my terminal in plain text. The request show up in my terminal as the page tries to load. It continues to send out request after request but with no response received in my browser or terminal. I know this because my browser stalls while trying to load website.org. It gets stuck on the new tab page and can’t load the page. I also know this because the terminal only shows [+]Request over and over. I also know its sending request to website.org because using .show() on the packet before its sent the packet is asking for website.org. And yes my browser works normally when no iptables rules are set. It loads website.org correctly when the script is not running with iptables rules set.
I hope you understand my problem now and what’s really happening I want to move on to other sections but this is holding me back.
carter.james199Participant
First here’s the edited screenshots of what I get when running the code. The code I’m running doesn’t add anything into the source code yet. I’m still at the part where we’re trying to remove encoding from the packets, so I can see plain text packets in my terminal. There is nothing in the page source that different, so I’m not sure what I should be checking for. My code is only changing the load of the request nothing else. So when I flush iptables I don’t see anything useful just the page loads up after a minute into the browsercarter.james199ParticipantOk I see I’ll repost better screenshots later when I get to my desk. But bro I can’t see the page source cause nothing is loaded. Clicking o n view page source in my browser just brings me to the source page for the basic landing page of Firefox. Like I’ve been saying I don’t get any responses just request go out.
carter.james199Participantcarter.james199ParticipantYes it was http://www.website.org/ and what do you mean the code source page? I’m dropping some more pictures of my output when I run the program. It’s a weird screenshot so just zoom in on the top left part of the image.
carter.james199Participantimages of iptables commands
carter.james199ParticipantOk so I ran the correct iptables command ‘iptables -t nat -L’ and there were no queues in the chains everything with policy accept.
I ran it before running the script and during getting the same output. The file interceptor scripted worked just fine with the site you gave me. And flushing iptables didn’t work it made the browser start getting responses and load the page yes but i was still unable to see any responses in my terminal.carter.james199ParticipantDo I need to IP forward if I’m using this on my local device and not another computer?
carter.james199ParticipantSo I thought I did run all the commands you posted, but I did them again and posted the screenshots. Also, thank you for the site.
Another thing when I tried to run sudo iptables -t nat or –table, I get command not found. I run the script with sudo every time it won’t let me run unless it has root.And there is output to the screen it catches all the request just no responses.
carter.james199Participant
I rewrote the code to match what Zaid did again and attached the screenshots to this post.
I also attached the screenshots for the iptables commands you asked for.I was able to get the DNS spoofer to work with an HTTP site and everything else before that, other than the file interceptor because I didn’t know any HTTP sites that had downloads on their site. Why would me using my own operating system be a problem Zaid says we don’t have to use Kali in the course.
- AuthorPosts