Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




nmap-dev logo Nmap Development mailing list archives

Re: [Lua snippit] print_hex
From: "Patrick Donnelly" <batrick.donnelly () gmail com>
Date: Fri, 5 Sep 2008 14:02:10 -0600

On Fri, Sep 5, 2008 at 8:19 AM, Ron <ron () skullsecurity net> wrote:
Hey,

I'm so accustomed to the way Wireshark and other stuff outputs hex that I
threw something together in Lua that'll do the same. It's purely for
debugging my own code, not intended to be displayed to end users.

(Also, feel free to reply telling me that there's a built in function and I
just waited a half hour porting 0-based arrays to 1-based arrays :) )

Attached is an improved version that removes unnecessary loops/logic.
It was a fun little exercise :)

Cheers,

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant

Attachment: print_hex.lua
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]