- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Maverick88
Howdy Folks,
I've done a fair share of Googling but to no avail so I thought I'd get some input on my current task here. I've got a file of raw packet data that I need to do some manipulation to. Basically, I need to delete the first several bytes of data in the file, then delete another set amount of bytes occurring at a particular offset, then another set of bytes at another offset, and so on and so forth.
The basic logic is this:
Delete first 1048 bytes of the file
Skip to offset 0x10000
Delete 68 bytes of data
Skip to offset 0x20000
Delete 68 bytes of data
Skip to offset 0x30000
Delete 68 bytes of data
I'd appreciate any thoughts or general pointers on how I should approach this in python. I've got a few other things I eventually want to do with this script but getting this figured out should point me in the right direction.
Link to comment
https://www.neowin.net/forum/topic/991710-python-removing-bytes-at-particular-offsets-in-a-file/Share on other sites
2 answers to this question
Recommended Posts