Code Monkey home page Code Monkey logo

Comments (5)

magnumripper avatar magnumripper commented on August 15, 2024

Hmm, I suppose the last remark should be rephrased as "the pcap stuff built after john itself". Right now it's SIPdump and vcnpcap2john (nb. wpapcap2john does not use the pcap lib).

from john.

rofl0r avatar rofl0r commented on August 15, 2024

seems wpapcap provides its own pcap format parser, which is nice... however it looks like it only cares for little endian machines (it always does a bitswap, plus the ethernet hdr structs dont have endian-aware ifdefs in it, unlike our tcphdr.h)

from john.

magnumripper avatar magnumripper commented on August 15, 2024

I'm not 100% sure but I believe you are wrong and @jfoug is one of the better among JtR coders when it comes to endianity. In Process(), it reads the data right into a struct. But it then checks the main_hdr.magic_number for endianity and acts accordingly (swaps stuff).
Anyway that's OT for this issue :-)

from john.

rofl0r avatar rofl0r commented on August 15, 2024

ah lol then bROT means "need endian transform". when i glanced over the code it looked like some sort of pcap version check. quite non-obvious. it's also kinda unusual to have 2 different codepaths for endianness instead of just using ntohl() etc, which would get optimized to a NOP on big endian machines.

from john.

magnumripper avatar magnumripper commented on August 15, 2024

Static linking is currently out of scope for JtR out-of-the-box, and no-one seems to contribute to it. Closing.

from john.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.