Posts

Maigret: searches for information leaks via usernames [Github]

Image
Maigret compiles a profile for an individual based solely on their username, searching across a vast array of websites to aggregate all accessible data from web pages. No need for API keys. Maigret serves as an effective and user-friendly derivative of Sherlock. It currently supports over 3,000 websites (complete list available), and by default initiates searches on 500 of the most popular sites in decreasing order of their popularity. The tool also accommodates checks for Tor and I2P websites, as well as domain names through DNS resolution. GitHub URL: https://github.com/soxoj/maigret Project URL: https://pypi.org/project/maigret Main features Profile pages parsing, extraction of personal info, links to other profiles, etc. Recursive search by new usernames and other ids found Search by tags (site categories, countries) Censorship and captcha detection Requests retries See full description of Maigret features in the documentation . Demo with ...

Resolve error when installing software using apt-get [Linux]

Image
When I was using the apt-get command to install software in a Linux system, I encountered the following error message: E: Sub-process /usr/bin/dpkg returned an error code (1) I found a helpful solution in Google search results, as follows:  cd /var/lib/dpkg/ # Navigate to the dpkg directory sudo mv info/ info_bak # Rename the info folder first sudo mkdir info # Create a new info folder sudo apt-get update # Update sudo apt-get -f install # Repair sudo mv info/* info_bak/ # After executing the previous step, some files will be generated in the new info folder. Now move all these files to the info_bak folder sudo rm -rf info # Delete the newly created info folder sudo mv info_bak info # Rename the previous info folder back

HTTPS(SSL) Blocks WordPress Admin Access

Image
When a WordPress blog configures an SSL certificate to enable HTTPS, there is a certain probability that the following issues may arise: Website CSS styling is disorganized Incorrect display of image URLs Unable to access the website admin dashboard You can modify the wp-config.php file to solve these issues. Here's how: 1. Go to the root directory of your WordPress site and open the wp-config.php file in an editor. 2. Find the following code snippet in the file: ** @package WordPress */ 3. Insert the following lines of code immediately after the above snippet: $_SERVER['HTTPS'] = 'on'; define('FORCE_SSL_LOGIN', true); define('FORCE_SSL_ADMIN', true); 4. After completing the above steps, visit the admin dashboard of your website. In the General Settings page, change both the "WordPress Address (URL)" and "Site Address (URL)" from http to https, and save the changes. 5. Generally, for a brand-new WordP...

Python Script for Bulk Google Images Download(GitHub) to Disk

Summary Google Images Download Project: This command-line Python utility searches Google Images for specific keywords or phrases and has the option to download the resulting images to your local machine. It's a self-contained, ready-to-use program that doesn't require any external dependencies for downloads of up to 100 images per keyword. For downloads exceeding 100 images, you'll need to install Selenium and chromedriver . See the troubleshooting section for details. Compatibility The program works seamlessly with both Python 2.x and 3.x versions, although 3.x is recommended. It's a plug-and-play solution that requires no modifications to the original file. All you need to do is provide the necessary parameters via the command line. Installation You can use one of the below methods to download and use this repository. Install using pip $ pip install google_images_download Manually install using CLI $ git clone https://github.com/hardikvasa/google-images-downloa...

Repeated "Trust" Alerts on iPhone-MacBook Connection - disable USBD service

Image
When I connected my iPhone 13 Pro to my Macbook Pro using a cable, a "Trust" prompt kept repeatedly popping up on the iPhone's screen, preventing a successful connection with the Macbook. I tried changing cables, rebooting the iPhone, and restarting the Macbook, all to no avail ( Click here to view Apple's official suggestions for resolving this issue). Eventually, I found an effective solution through Google: disable USBD service. To disable and enable the USBD service , you can follow these steps. To disable USBD service 1. Open Terminal and enter the following command: sudo killall -STOP -c usbd 2. Press Enter and then input your password. Note that the password will not be visible while you're typing it.(The password to use is the one you set during boot-up.) To enable USBD service 1. Open the Terminal app again if it's not already open. 2. Type the following command: sudo killall -CONT usbd 3. Press Enter. By performing these steps, you shoul...

Installing Python3.10.x Version on Mac and Set the Environment

Image
MacOS already comes with Python2.7 and Python3.8 pre-installed. For specific reasons, I needed to install Python3.10.x separately. After installing the new Python version, some modifications to the default environment settings are required. This article serves as a memo detailing how to modify the environment settings after installing Python3.10 on a Mac. Steps for Installing Python3.10.x and Modifying Environment Settings: 1. Install Python3.10.x 2. Configure environment variables for Python3.10.x Install Python3.10.x 1. Download Python Go to the Python official website's download page , find the corresponding version, and proceed with the download. For the purpose of this article, I will be downloading Python3.10.6 as an example. 2. Scroll down to the bottom of the page and look for "Looking for a specific release?" Tips: Use Ctrl+F to search for the Python version number you wish to download. 3. Navigate to the Python3.10.6 download page. 4. Doub...

Batch rename files using the parent directory name

Image
After coming across suitable images, I save them immediately. However, over time, the directories and files of images sourced from the internet became extremely cluttered. I started reclassifying and organizing them, moving images with similar attributes to appropriate directories. Ultimately, while the images were neatly categorized, their arbitrary filenames were irksome. Facing this issue, I consulted Google and eventually stumbled upon an excellent solution: Batch rename files using the parent directory name. Open the Terminal app, then enter the following bash script code and press Enter to run: for dir in */; do count=1 for file in "${dir}"*; do if [[ -f "$file" ]]; then base=$(basename "$file") ext="${base##*.}" newname="${dir%/}_${count}.${ext}" mv "$file" "${dir}${newname}" ((count++)) fi done done This script will i...