war-and-code / libreveal.js Goto Github PK
View Code? Open in Web Editor NEWReveals third-party JavaScript libraries in use.
License: GNU General Public License v3.0
Reveals third-party JavaScript libraries in use.
License: GNU General Public License v3.0
Noticed on a recent engagement that target was using extjs but libreveal.js printed just the version number. In lieu of the expected libreveal.js: extjs @ <version here>
Quick glance looks like for whatever reason there's conditional logic in the console.log
calls.
This issue covers investigation and fixing of the bug.
(See title)
Ultimately I foresee libreveal.js being derived from the regular RetireJS JSON with an additional JSON file for some additions not in there (i.e. Bootstrap).
You should just be able to run like compile.py
which would...
jsrepository.json
for additional oneslibreveal.js
with an incremented version numberlibreveal.min.js
This would take us to version 2.0 where little issues like #1 (assuming that truly comes from RetireJS) are irrelevant.
On a recent pen test, I found the tooltip
identifier function for Bootstrap wasn't working.
I am not quite sure why that was but ended up looking at the source to find alternatives. One of these did work.
$.fn.alert.Constructor.VERSION
$.fn.button.Constructor.VERSION
$.fn.carousel.Constructor.VERSION
$.fn.collapse.Constructor.VERSION
$.fn.dropdown.Constructor.VERSION
$.fn.modal.Constructor.VERSION
$.fn.tooltip.Constructor.VERSION
$.fn.popover.Constructor.VERSION
$.fn.scrollspy.Constructor.VERSION
$.fn.tab.Constructor.VERSION
$.fn.affix.Constructor.VERSION
Blocked by #2
When this is "compiling" JavaScript via src/compile.py
, there should be some "sanity-checking" on the output.
Looks like this would be made possible by adding a requirement (there will be a requirements.txt
now)
pip install pyjsparser
Then parse the script and check for an exception like so...
import pyjsparser
try:
pyjsparser.parse(output_javascript)
except:
print('Your JavaScript sucks')
YUI.version
(I think this came from retire.js but just found it in an old assessment notes file)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.