robre / jsmon Goto Github PK
View Code? Open in Web Editor NEWa javascript change monitoring tool for bugbounties
License: MIT License
a javascript change monitoring tool for bugbounties
License: MIT License
the config u told to setup as cronjob was not workign in zsh shell
When I tried the following option python setup.py install it gives the following error
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/JSMon-1.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/JSMon-1.0.egg-info
In setup.py the following is the code
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='JSMon',
packages=find_packages(),
version='1.0',
description="A python script that monitors JavaScript files.",
long_description=open('README.md').read(),
author='r0bre',
author_email='[email protected]',
license='MIT',
url='https://github.com/robre/jsmon',
install_requires=['requests', 'jsbeautifier', 'python-decouple','slackclient'],
)
What's the problem ?
Thanks in advance !!
Yukesh
With cronjob configured as mentioned in readme, lets say @daily python3 /root/tools/jsmon/jsmon.py
this point of the code:
allendpoints = get_endpoint_list('targets')
print(allendpoints) # endpoint will come as {} because targets is not in $HOME but in jsmon dir here: /root/tools/jsmon/
I am able to get it working by modifying to full path in jsmon.py but it is not flexible, not sure how can we check jsmon dir path and configure all paths in jsmon.py with that full path dynamically.
Here is some part of my change which I did to get it working with cronjob
- oldlines = open("downloads/{}".format(old), "r").readlines()
- newlines = open("downloads/{}".format(new), "r").readlines()
+ oldlines = open("/root/tools/jsmon/downloads/{}".format(old), "r").readlines()
+ newlines = open("/root/tools/jsmon/downloads/{}".format(new), "r").readlines()
oldbeautified = jsbeautifier.beautify("".join(oldlines), opt).splitlines()
newbeautified = jsbeautifier.beautify("".join(newlines), opt).splitlines()
# print(oldbeautified)
@@ -123,8 +123,8 @@ def main():
print("Please Set Up your Telegram Token And Chat ID!!!")
exit(1)
- allendpoints = get_endpoint_list('targets')
- # print(allendpoints)
+ allendpoints = get_endpoint_list("/root/tools/jsmon/targets")
+ print(allendpoints)
Traceback (most recent call last):
File "jsmon.py", line 144, in
main()
File "jsmon.py", line 132, in main
ep_text = get_endpoint(ep)
File "jsmon.py", line 42, in get_endpoint
r = requests.get(endpoint)
File "/home/faisal/.local/lib/python3.8/site-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/home/faisal/.local/lib/python3.8/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/home/faisal/.local/lib/python3.8/site-packages/requests/sessions.py", line 494, in request
prep = self.prepare_request(req)
File "/home/faisal/.local/lib/python3.8/site-packages/requests/sessions.py", line 427, in prepare_request
p.prepare(
File "/home/faisal/.local/lib/python3.8/site-packages/requests/models.py", line 305, in prepare
self.prepare_url(url, params)
File "/home/faisal/.local/lib/python3.8/site-packages/requests/models.py", line 379, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '# Ignore everything in this directory': No schema supplied. Perhaps you meant http://# Ignore everything in this directory?
what is this? how to fix it? i am running it on my laptop having ubuntu 20.04
How can we install this onto windows 10?
Would it be possible to get notified via slack too?
Hy can you add discord as notification?
First very thanks for the tool !!
Is there any limit on the size of the js file to download, I am not able to see any downloaded file in ./downloads when the file is big. Like in my case it was 18 MB.
i keep getting this erros affter i run jsmon
JSMon - Web File Monitor
Traceback (most recent call last):
File "jsmon.py", line 144, in <module>
main()
File "jsmon.py", line 132, in main
ep_text = get_endpoint(ep)
File "jsmon.py", line 42, in get_endpoint
r = requests.get(endpoint)
File "/home/zealsham/.local/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/home/zealsham/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/zealsham/.local/lib/python3.6/site-packages/requests/sessions.py", line 516, in request
prep = self.prepare_request(req)
File "/home/zealsham/.local/lib/python3.6/site-packages/requests/sessions.py", line 459, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/zealsham/.local/lib/python3.6/site-packages/requests/models.py", line 314, in prepare
self.prepare_url(url, params)
File "/home/zealsham/.local/lib/python3.6/site-packages/requests/models.py", line 388, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '# Ignore everything in this directory': No schema supplied. Perhaps you meant http://# Ignore everything in this directory?
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.