Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional JavaScript Libraries #900

Merged
merged 5 commits into from
Jun 3, 2024
Merged

Conversation

geeknik
Copy link
Contributor

@geeknik geeknik commented May 25, 2024

Some regex updates, a User Agent update, and additional JavaScript libraries:

  1. Chart Libraries:

    • chart[-_.]?js, plotly, echarts, d3[-_.]?force, sigma, c3, nvd3, amcharts, vis[-_.]?js
  2. Mapping Libraries:

    • leaflet, openlayers, ol3, mapbox, cesium, turf
  3. Date Libraries:

    • moment[-_.]?timezone, luxon, dayjs, date[-_.]?fns, date[-_.]?io
  4. Calendar and Picker Libraries:

    • flatpickr, pikaday, fullcalendar
  5. Drag and Drop Libraries:

    • draggable, interact, sortable, dragula
  6. File Handling Libraries:

    • dropzone, filepond, uppy, fine[-_.]?uploader
  7. Media Libraries:

    • plyr, mediaelement, flowplayer, jwplayer, video[-_.]?js, mediaelement[-_.]?js, dash[-_.]?js, hls[-_.]?js, videojs, wavesurfer, soundmanager, amplitude, pizzicato, tone

@ehsandeep ehsandeep changed the base branch from main to dev May 25, 2024 09:12
fix spacing
@GeorginaReeder
Copy link

Thanks as always for your contribution @geeknik, we appreciate it !

### Added
- Included additional ad network libraries to the regex pattern for enhanced detection capabilities.

### Changed
- Updated the `CommonJSLibraryFileRegex` to expand the coverage of JavaScript library detection by incorporating ad network libraries such as `adroll`, `doubleclick`, `facebook-pixel`, `ga-audiences`, `googlesyndication`, `adsbygoogle`, `gpt`, `amazon-adsystem`, `criteo`, `taboola`, `outbrain`, and many more.

### Fixed
- Improved the accuracy and comprehensiveness of the regex pattern to ensure it captures a broader range of JavaScript library files used by both common JS frameworks and ad networks.
pkg/utils/jsluice.go Dismissed Show dismissed Hide dismissed
@Mzack9999
Copy link
Member

Closes #907

@Mzack9999 Mzack9999 merged commit a0e85d9 into projectdiscovery:dev Jun 3, 2024
13 checks passed
@Mzack9999 Mzack9999 linked an issue Jun 3, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default User Agent should match headless chrome on the system
3 participants