Hi, In this post I will detail how I installed and used MongoDB on Kali Linux, including how I resolved the issues came across.
Step 1: Install mongodb on Kali Linux
- Use the following command to install mongodb (refer: source)
sudo apt-get install mongodb
Alternatively, you can remove existing installations with the following command before executing the above install command.
sudo apt-get purge mongo*
I tried the following two commands based on the existing tutorials, however with errors.
#2 sudo systemctl start mongod
create /data/db directory
sudo mkdir -p /data/db
sudo chmod g+w /data/db
Step 2: Set up PyCharm
- Install pymongo using the PyCharm interpreter. (File -> Settings -> Under ‘Project’ find the ‘Project Interpreter’)
Step 3: Create a mongodb database
Open a new terminal and use command
Following that you can use an existing tutorial : https://www.tutorialspoint.com/mongodb/mongodb_create_collection.htm on creating and managing mongoDBs as follows.
Step 4: Use the created mongoDB on PyCharm
uri = 'mongodb://127.0.0.1:27017'
client = pymongo.MongoClient(uri)
db = client['actionmonitor']
collection = db['pagedefaults']
Cheers ! 🙂
Hi ! In android devices there are two CA stores i.e., system store and user store
- system store path: /system/etc/security/cacerts
- user store path: /data/misc/user/0/cacerts-added
Usually, the certificates such as FiddlerRoot cert that are installed by the user, are saved in the user store. Sometimes, the user installed certificates may not be trusted by the applications. Hence, you may want to move them into the system store.
You can follow the following steps to do that.
- Mount the system directory to enable read/write capability
ja3gxx:/system/etc/security/cacerts # su
ja3gxx:/ # mount -o rw,remount /system
- Move the required user installed Cert to system store
1|ja3gxx:/data/misc/user/0/cacerts-added # mv e5c3944b.0 /system/etc/security/cacerts
Cheers ! 🙂
Hi! Here I provide a brief guide to enable using mysql database on PyCharm 2019.1.2 (community edition).
Step 1. Create mysql database.
Kali linux comes with mysql pre-installed.
Open terminal and type,
:~# service mysql start
:~# mysql -u root -p // provide password when prompt
- Give privilege to ‘user’@localhost.
MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO '<username>'@'localhost' IDENTIFIED BY '<password>';
Step 2. Install DB Navigator on PyCharm IDE.
- Select project -> File –> Settings –> Plugins
- Search “DB Navigator”
- Install package
Step 3. Connect the mysql database with PyCharm.
- Press “+” on “DB Browser” –> select ‘MySQL’
- In DB Navigator settings, select “+” again in “Connection” tab.
- Fill the form with required information.
- For authentication: select “user/password”, and provide the ‘<username>’ and ‘<password>’ provided during grant privilege above.
Cheers ! 🙂
Hi! When you try to run the xposed module on Android Studio, at the build configuration select the “Nothing” from the drop down list of “Launch Options” to avoid the “Default Activity not specified” error.
Hi!, This error occurs when you haven’t select the “module” from the drop down list at build configurations of Android Studio IDE. The module may not appear in drop down list for several reasons.
If you get this error while running an imported project to Android Studio IDE most probably the reason are:
- You may haven’t imported the project correctly. Select the “settings.gradle” file when importing existing project.
- The content of the module may be missing. This happened to me while downloading the project from Dropbox. The file structure of the project was slightly messed.
Otherwise, “syncing the gradle files” should work as usual.
Hi! Here I briefly describe my experience on setting up Fiddler on Kali Linux and capturing traffic from Firefox ESR browser.
sudo apt install mono-complete
Configuring Firefox to capture traffic
- Open the Firefox browser and press ‘Alt’ button. The tool bar at the top will appear.
- Next, Goto Edit –> Preferences to view the “Options” in Firefox.
- Select Advanced –> Network .
- Click on “Settings”. It says “No Proxy”
- Tick the “User system proxy settings” option and press OK.
Configuring Firefox to trust Fiddler root certificate
If you try to load a https page at Firefox you will see following error. To avoid that need to configure Firefox with Fiddler’s root certificate.
Step 1: Download the Fiddler’s root certificate.
- At Fiddler, goto Tools –>Options .
- Select “HTTPS” tab.
- Press “Actions” button at the right top corner.
- Select “Export Root Certificate to Desktop”.
Step 2: Import the Fiddler’s root certificate at Firefox browser.
- Goto Edit –> Preferences –> Advanced –> Certificate.
- Press “View Certificate” button.
- Select “Import” –> Choose the root certificate on desktop.
- Tick “Trust this CA to identify websites”. Press OK. done.