Research, development and trades concerning the powerful Proxmark3 device.
Remember; sharing is caring. Bring something back to the community.
"Learn the tools of the trade the hard way." +Fravia
You are not logged in.
Time changes and with it the technology
Proxmark3 @ discord
Users of this forum, please be aware that information stored on this site is not private.
Pages: 1
I hope this is the right place to put this.
I noticed some little bugs using
script run htmldump.lua
Maybe someone with better lua skills than mine can fix these issues.
Thanks!
ikarus
P. S.: I love the new scripting stuff
Offline
I have the same "color" issue but I cannot reproduce the "dash" bug, maybe it only happens with specific byte-values ?
To help holiman (which is a "lua-guru") please upload the problematic mifre dump somewhere in order for Holiman to download and test it; I think he will fix that really soon !
PS I love the scripting stuff too !!
Last edited by asper (2013-10-17 16:46:06)
Offline
in the file lualibs/htmlskel.lua
Line 67
else if(byte < 11) el.className += " accessconditions";
change that to
else if(byte < 10) el.className += " accessconditions";
that will fix the colouring for key B, as to the missing dashes, i cant reproduce that with the dump I have
Offline
To help holiman (which is a "lua-guru") please upload the problematic mifre dump somewhere in order for Holiman to download and test it
Download: dumpdata.bin
Offline
I have a fix for the empty cells not having a border too
In the same lualibs/htmlskel.lua file on line 30 it shows:
td.sectorhdr{
border-top: 1px solid white;
}
change this to:
td.sectorhdr{
border-top: 1px solid white;
empty-cells: show;
}
And now any cells that hold just a space (0x20) will also have a border above them.
Offline
Another lua-guru! Thank you en4rab!!
Offline
I know nothing of LUA htmlskel.lua is actually a html/javascript template that the dump is inserted into, and i can just about do html and javascript.
like this which took me all day for 2 pages lol https://www.en4rab.co.uk/
Offline
Yeah, thanks!
As en4rab points out, this is vanilla js and html (vanilla == no jquery or other frameworks). I wanted it to be entirely self-contained and not needing any external components, thus jquery-less. However, I think there are a lot of fun things that can be done - examples include:
* Showing manufacturer-info.
* Access-bit calculator
If anyone wants to play around with it, I've put it on jsfiddle along with en4rab's changes into a fiddle: http://jsfiddle.net/pebEG/
(I used td{emtpy-cells:show} , not just td.sectorhdr)
So, add anything you find missing, and post the new fiddle url here. When we're finished, I'll put it back into a self-contained page and commit. Oh, and I'll commit enr4abs changes right away.
Offline
Pages: 1