AI powered OSINT engine to discover and map 840+ social media identities across the web
Python aiartificial-intelligencedebainhackhackerhackinghackingtoolsinformationinformation-gatheringlinuxlinux-desktoposintpythonpython-scriptpython3social-mediasocialmediahackingtermuxtermux-tool
refactor: Update README formatting and remove installation scripts
arxhr007be6b531bc6ac
diff --git a/README.md b/README.mdindex f1b67b7..e39171b 100644--- a/README.md+++ b/README.md@@ -1,4 +1,4 @@-+<img src="https://raw.githubusercontent.com/arxhr007/Aliens_eye/main/photos/logo.png" alt="Aliens Eye Logo" width="250" height="200"># AI-OSINT Username Scanner@@ -29,16 +29,6 @@## Install-### Quick install (Linux/Termux) — One-liner--Copy-paste this into your terminal:--```bash-curl -s https://pastebin.com/raw/HChbzbeD | bash-```--### Manual install-```bash# Clone the repositorygit clone https://github.com/arxhr007/Aliens_eye.git@@ -79,13 +69,6 @@ python3 -m pip install -r requirements.txtpython3 aliens_eye.py username```-Or install system-wide with the installer script:--```bash-bash install.sh-aliens_eye username-```-### iOS (iSH shell)In iSH, install Python and run from source:diff --git a/install.sh b/install.shdeleted file mode 100644index 4b1082e..0000000--- a/install.sh+++ /dev/null@@ -1,219 +0,0 @@-#!/bin/bash-# Aliens Eye - Universal Installation Script-# This script installs Aliens Eye on both Linux and Termux environments--# Colors for terminal output-GREEN='\033[0;32m'-YELLOW='\033[1;33m'-RED='\033[0;31m'-BLUE='\033[0;34m'-NC='\033[0m' # No Color--# Function for clean error exit-cleanup() {- echo -e "\n${RED}Installation aborted.${NC}"- exit 1-}--# Function to check for required commands-check_requirement() {- command -v "$1" >/dev/null 2>&1 || {- echo -e "${RED}Error: Required command '$1' not found. Please install it first.${NC}"- return 1- }- return 0-}--# Resolve Python command and keep pip aligned with that interpreter-resolve_python_cmd() {- if command -v python3 >/dev/null 2>&1; then- echo "python3"- return 0- fi- if command -v python >/dev/null 2>&1; then- echo "python"- return 0- fi- return 1-}--# Trap errors-trap cleanup ERR--clear-echo -e "${BLUE}===========================================${NC}"-echo -e "${BLUE} ${GREEN}Aliens Eye Installation${BLUE} ${NC}"-echo -e "${BLUE}===========================================${NC}"-echo--# Detect environment (Linux or Termux)-if [ -d "/data/data/com.termux" ]; then- echo -e "${YELLOW}Termux environment detected${NC}"- # Termux paths- PREFIX="/data/data/com.termux/files/usr"- BIN_DIR="${PREFIX}/bin"- CONFIG_DIR="${PREFIX}/etc/aliens_eye"- LIB_DIR="${BIN_DIR}/aliens_eye_lib"- REQUIRES_ROOT=false-else- echo -e "${YELLOW}Linux environment detected${NC}"- # Standard Linux paths- PREFIX="/usr/local"- BIN_DIR="${PREFIX}/bin"- CONFIG_DIR="/etc/aliens_eye"- LIB_DIR="${BIN_DIR}/aliens_eye_lib"- REQUIRES_ROOT=true-- # Check for root on Linux- if [[ $(id -u) -ne 0 && "$REQUIRES_ROOT" = true ]]; then- echo -e "${YELLOW}Root privileges are required for installation on Linux.${NC}"- echo -e "${YELLOW}Elevating privileges...${NC}"- exec sudo bash "$0" "$@"- exit $?- fi-fi--# Check for required programs-echo -e "${GREEN}Checking requirements...${NC}"-PYTHON_CMD="$(resolve_python_cmd)" || {- echo -e "${RED}Error: Python is required but not installed.${NC}"- if [ "$REQUIRES_ROOT" = false ]; then- echo -e "${YELLOW}Run 'pkg install python' in Termux to install it.${NC}"- else- echo -e "${YELLOW}Install Python 3.10+ on your system and try again.${NC}"- fi- exit 1-}--"${PYTHON_CMD}" -m pip --version >/dev/null 2>&1 || {- echo -e "${RED}Error: pip is not available for ${PYTHON_CMD}.${NC}"- if [ "$REQUIRES_ROOT" = false ]; then- echo -e "${YELLOW}Run 'pkg install python' in Termux to install pip.${NC}"- else- echo -e "${YELLOW}Install pip for your Python interpreter and try again.${NC}"- fi- exit 1-}--# Check if source files exist-if [[ ! -f "aliens_eye.py" ]]; then- echo -e "${RED}Error: aliens_eye.py not found in current directory.${NC}"- exit 1-fi--if [[ ! -f "sites.json" ]]; then- echo -e "${RED}Error: sites.json not found in current directory.${NC}"- exit 1-fi--if [[ ! -d "core" || ! -d "utils" ]]; then- echo -e "${RED}Error: core/ or utils/ directory not found in current directory.${NC}"- exit 1-fi--# Install dependencies if requirements.txt exists-if [[ -f "requirements.txt" ]]; then- echo -e "${GREEN}Installing Python dependencies...${NC}"-- if [ "$REQUIRES_ROOT" = true ]; then- # Use --break-system-packages for Linux (requires newer pip)- pip_version=$(${PYTHON_CMD} -m pip --version | awk '{print $2}' | cut -d. -f1)- if [ "$pip_version" -ge 23 ]; then- ${PYTHON_CMD} -m pip install -r requirements.txt --break-system-packages || {- echo -e "${RED}Failed to install dependencies.${NC}"- exit 1- }- else- ${PYTHON_CMD} -m pip install -r requirements.txt || {- echo -e "${RED}Failed to install dependencies.${NC}"- exit 1- }- fi- else- # Termux doesn't need --break-system-packages- ${PYTHON_CMD} -m pip install -r requirements.txt || {- echo -e "${RED}Failed to install dependencies.${NC}"- exit 1- }- fi-else- echo -e "${YELLOW}No requirements.txt found, skipping dependency installation.${NC}"-fi--# Install Playwright browser binaries so the fallback is ready to use-echo -e "${GREEN}Installing Playwright browser binaries...${NC}"-${PYTHON_CMD} -m playwright install chromium || {- echo -e "${RED}Failed to install Playwright browser binaries.${NC}"- exit 1-}--# Create config directory if it doesn't exist-echo -e "${GREEN}Setting up configuration directory...${NC}"-mkdir -p "${CONFIG_DIR}" || {- echo -e "${RED}Failed to create configuration directory.${NC}"- exit 1-}--# Install default config if provided-if [[ -f "config.json" ]]; then- if [[ ! -f "${CONFIG_DIR}/config.json" ]]; then- cp "config.json" "${CONFIG_DIR}/config.json" || {- echo -e "${RED}Failed to install default config.${NC}"- exit 1- }- fi-fi--# Remove old installations if they exist-echo -e "${GREEN}Cleaning up old installation (if any)...${NC}"-rm -f "${BIN_DIR}/aliens_eye" 2>/dev/null-rm -f "${BIN_DIR}/sites.json" 2>/dev/null-rm -rf "${LIB_DIR}" 2>/dev/null--# Install program files-echo -e "${GREEN}Installing program files...${NC}"-cp "aliens_eye.py" "${BIN_DIR}/aliens_eye" || {- echo -e "${RED}Failed to install executable.${NC}"- exit 1-}--mkdir -p "${LIB_DIR}" || {- echo -e "${RED}Failed to create lib directory.${NC}"- exit 1-}--cp -r "core" "utils" "${LIB_DIR}/" || {- echo -e "${RED}Failed to install core modules.${NC}"- exit 1-}--cp "sites.json" "${CONFIG_DIR}/sites.json" || {- echo -e "${RED}Failed to install configuration.${NC}"- exit 1-}--chmod +x "${BIN_DIR}/aliens_eye" || {- echo -e "${RED}Failed to set executable permissions.${NC}"- exit 1-}--# Create symlink to config file-ln -sf "${CONFIG_DIR}/sites.json" "${BIN_DIR}/sites.json"--# Verify installation-if [[ -x "${BIN_DIR}/aliens_eye" && -f "${CONFIG_DIR}/sites.json" ]]; then- echo -e "\n${GREEN}[OK] Installation completed successfully!${NC}"-- if [ "$REQUIRES_ROOT" = true ]; then- echo -e "${YELLOW}You can now run 'aliens_eye' from anywhere in the terminal.${NC}"- else- echo -e "${YELLOW}You can now run 'aliens_eye' from anywhere in Termux.${NC}"- fi-- echo -e "${YELLOW}Configuration file is located at: ${CONFIG_DIR}/sites.json${NC}\n"-else- echo -e "\n${RED}[FAIL] Installation failed. Please check the error messages above.${NC}"- exit 1-fi--exit 0diff --git a/uninstall.sh b/uninstall.shdeleted file mode 100644index 4899fdd..0000000--- a/uninstall.sh+++ /dev/null@@ -1,143 +0,0 @@-#!/bin/bash-# Aliens Eye - Uninstall Script-# This script uninstalls Aliens Eye from both Linux and Termux environments--# Colors for terminal output-GREEN='\033[0;32m'-YELLOW='\033[1;33m'-RED='\033[0;31m'-BLUE='\033[0;34m'-NC='\033[0m' # No Color--# Print banner-echo -e "${BLUE}╔═══════════════════════════════════════════╗${NC}"-echo -e "${BLUE}║ ${RED}Aliens Eye Uninstaller${BLUE} ║${NC}"-echo -e "${BLUE}╚═══════════════════════════════════════════╝${NC}"-echo--# Detect environment (Linux or Termux)-if [ -d "/data/data/com.termux" ]; then- echo -e "${YELLOW}Termux environment detected${NC}"- # Termux paths- PREFIX="/data/data/com.termux/files/usr"- BIN_DIR="${PREFIX}/bin"- CONFIG_DIR="${PREFIX}/etc/aliens_eye"- LIB_DIR="${BIN_DIR}/aliens_eye_lib"- REQUIRES_ROOT=false-else- echo -e "${YELLOW}Linux environment detected${NC}"- # Standard Linux paths- PREFIX="/usr/local"- BIN_DIR="${PREFIX}/bin"- ALT_BIN_DIR="/usr/bin"- CONFIG_DIR="/etc/aliens_eye"- LIB_DIR="${BIN_DIR}/aliens_eye_lib"- REQUIRES_ROOT=true-- # Check for root permissions on Linux- if [[ $(id -u) -ne 0 && "$REQUIRES_ROOT" = true ]]; then- echo -e "${YELLOW}Root privileges are required for uninstallation on Linux.${NC}"- echo -e "${YELLOW}Elevating privileges...${NC}"- exec sudo bash "$0" "$@"- exit $?- fi-fi--# Function to remove files with status reporting-remove_file() {- local file=$1- if [ -e "$file" ]; then- rm -f "$file"- if [ $? -eq 0 ]; then- echo -e " ${GREEN}✓${NC} Removed: $file"- return 0- else- echo -e " ${RED}✗${NC} Failed to remove: $file"- return 1- fi- else- echo -e " ${YELLOW}!${NC} Not found: $file"- return 0- fi-}--# Function to remove directory with status reporting-remove_dir() {- local dir=$1- if [ -d "$dir" ]; then- rm -rf "$dir"- if [ $? -eq 0 ]; then- echo -e " ${GREEN}✓${NC} Removed directory: $dir"- return 0- else- echo -e " ${RED}✗${NC} Failed to remove directory: $dir"- return 1- fi- else- echo -e " ${YELLOW}!${NC} Directory not found: $dir"- return 0- fi-}--# Confirmation prompt-echo -e "${YELLOW}This will uninstall Aliens Eye from your system.${NC}"-echo -e "${YELLOW}Are you sure you want to continue? [y/N]${NC}"-read -r response-if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then- echo -e "${YELLOW}Uninstallation cancelled.${NC}"- exit 0-fi--# Uninstall files-echo -e "\n${GREEN}Removing Aliens Eye files...${NC}"--# Remove binaries-remove_file "${BIN_DIR}/aliens_eye"--# Check alternative binary location for Linux-if [ "$REQUIRES_ROOT" = true ] && [ -e "${ALT_BIN_DIR}/aliens_eye" ]; then- remove_file "${ALT_BIN_DIR}/aliens_eye"-fi--# Remove symlinks to configuration-remove_file "${BIN_DIR}/sites.json"-if [ "$REQUIRES_ROOT" = true ] && [ -e "${ALT_BIN_DIR}/sites.json" ]; then- remove_file "${ALT_BIN_DIR}/sites.json"-fi--# Remove configuration directory-echo -e "\n${GREEN}Removing configuration files...${NC}"-remove_dir "${CONFIG_DIR}"--# Remove installed library directory-echo -e "\n${GREEN}Removing library files...${NC}"-remove_dir "${LIB_DIR}"--# Additional cleanup - remove any leftover files-echo -e "\n${GREEN}Checking for leftover files...${NC}"-if [ "$REQUIRES_ROOT" = true ]; then- find /tmp -name "aliens_eye_*" -type f -exec rm -f {} \; 2>/dev/null- if [ $? -eq 0 ]; then- echo -e " ${GREEN}✓${NC} Cleaned temporary files"- else- echo -e " ${YELLOW}!${NC} No temporary files found or couldn't access /tmp"- fi-fi--# Check for success-if [ ! -e "${BIN_DIR}/aliens_eye" ] && [ ! -d "${CONFIG_DIR}" ]; then- if [ "$REQUIRES_ROOT" = true ] && [ -e "${ALT_BIN_DIR}/aliens_eye" ]; then- echo -e "\n${RED}Partial uninstallation. Some files may remain in ${ALT_BIN_DIR}.${NC}"- exit 1- else- echo -e "\n${GREEN}✓ Aliens Eye has been successfully uninstalled from your system!${NC}"- if [ "$REQUIRES_ROOT" = true ]; then- echo -e "${YELLOW}You may need to restart your terminal for changes to take effect.${NC}"- fi- exit 0- fi-else- echo -e "\n${RED}✗ Uninstallation may be incomplete. Some files could not be removed.${NC}"- echo -e "${YELLOW}You may need to manually remove remaining files.${NC}"- exit 1-fi