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

cmsmap: multiple issues #2365

Closed
noraj opened this issue Jun 14, 2019 · 2 comments
Closed

cmsmap: multiple issues #2365

noraj opened this issue Jun 14, 2019 · 2 comments
Labels
external::upstream-issue For issues that were created to track upstream issues

Comments

@noraj
Copy link
Contributor

noraj commented Jun 14, 2019

cmsmap http://10.x.x.x
[-] Date & Time: 14/06/2019 23:45:38
/bin/sh: apt-get: command not found
[-] Updating wordpress small plugins
Traceback (most recent call last):
  File "/usr/bin/cmsmap", line 11, in <module>
    load_entry_point('cmsmap==1.0', 'console_scripts', 'cmsmap')()
  File "/usr/lib/python3.7/site-packages/cmsmap/main.py", line 109, in main
    updater.CheckLocalFiles()
  File "/usr/lib/python3.7/site-packages/cmsmap/lib/coreupdate.py", line 208, in CheckLocalFiles
    self.UpdateLocalPlugins()
  File "/usr/lib/python3.7/site-packages/cmsmap/lib/coreupdate.py", line 247, in UpdateLocalPlugins
    f = open(cms_small_plugin_path, "a")
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.7/site-packages/cmsmap/data/wp_plugins_small.txt'

$ ls -lh /usr/lib/python3.7/site-packages/cmsmap/data 
total 1,4M
-rw-r--r-- 1 root root 2,9K juin   6 17:29 common_files.txt
-rw-r--r-- 1 root root  168 juin   6 17:29 conf_extensions.txt
-rw-r--r-- 1 root root 145K juin   6 17:29 dru_plugins.txt
-rw-r--r-- 1 root root    0 juin   6 17:29 __init__.py
-rw-r--r-- 1 root root  11K juin   6 17:29 joo_plugins.txt
drwxr-xr-x 2 root root 4,0K juin  14 23:09 __pycache__
-rw-r--r-- 1 root root 955K juin   6 17:29 wp_plugins.txt
-rw-r--r-- 1 root root  426 juin   6 17:29 wp_themes_small.txt
-rw-r--r-- 1 root root  93K juin   6 17:29 wp_themes.txt
-rw-r--r-- 1 root root 117K juin   6 17:29 wp_timthumbs.txt

wp_plugins_small.txt is not there nor in upstream https://github.com/Dionach/CMSmap/tree/master/cmsmap/data

I think it is trying to create it.

also apt-get can't be found on archlinux so we may need to set edbtype = GIT in cmsmap.conf

but if we set edbtype = GIT

[-] Date & Time: 14/06/2019 23:57:14
[ERROR] ExploitDB Git repository was not found
[-] Clone ExploitDB repository: git clone https://github.com/offensive-security/exploit-database
[-] Then set the ExploitDB path "edbpath" in cmsmap.conf
[-] ie: edbpath = /opt/exploitdb/

PKGBUILD

https://github.com/BlackArch/blackarch/blob/master/packages/cmsmap/PKGBUILD

@noraj
Copy link
Contributor Author

noraj commented Jun 14, 2019

So if upstream dionach/CMSmap#11 is not resolved we should add a post install warning to say it is only usable with root permissions.

@noraj noraj added the external::upstream-issue For issues that were created to track upstream issues label Sep 3, 2019
@noptrix
Copy link
Contributor

noptrix commented Apr 16, 2020

any news on this?

@ghost ghost closed this as completed in 4a74617 Apr 16, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external::upstream-issue For issues that were created to track upstream issues
Projects
None yet
Development

No branches or pull requests

2 participants