Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# PyCrack specific
# Generated password lists
*.txt
!requires.txt
!help.txt

# Temporary files
*.tmp
*.temp

# OS specific
.DS_Store
Thumbs.db
45 changes: 45 additions & 0 deletions WINDOWS_INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# PyCrack Windows Installation Guide

Since you're on Windows, the original `install.sh` script won't work. I've created Windows-compatible installation scripts for you.

## Installation Options

### Option 1: Batch File (Recommended)
1. Right-click on `install.bat`
2. Select "Run as administrator"
3. The script will automatically install the required Python packages and start PyCrack

### Option 2: PowerShell Script
1. Right-click on PowerShell and select "Run as administrator"
2. Navigate to the PyCrack directory
3. Run: `.\install.ps1`
4. The script will install packages and start PyCrack

## Manual Installation
If the scripts don't work, you can install manually:

1. Open Command Prompt or PowerShell as administrator
2. Install the required packages:
```
pip install rarfile==4.0
pip install colorama==0.4.4
pip install msoffcrypto-tool==4.12.0
pip install pdfplumber==0.7.5
pip install chardet==5.1.0
```
3. Run PyCrack:
```
python pycrack.py
```

## What's Fixed
- ✅ Created Windows-compatible installation scripts
- ✅ Fixed duplicate content in pycrack.py (reduced from 1016 to 564 lines)
- ✅ Updated clear() function to work on both Windows and Linux
- ✅ Fixed syntax errors and escape sequences

## Requirements
- Python 3.x installed on your system
- Administrator privileges (for package installation)

Enjoy using PyCrack on Windows! 🎉
38 changes: 38 additions & 0 deletions install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@echo off
echo PyCrack Windows Installer
echo.

REM Check if running as administrator
net session >nul 2>&1
if %errorLevel% == 0 (
echo Running with administrator privileges...
) else (
echo Please run this script as administrator (Right-click and "Run as administrator")
pause
exit /b 1
)

echo Installing packages for PyCrack...
echo.

REM Check if Python is installed
python --version >nul 2>&1
if %errorLevel% == 0 (
echo Python found, installing packages with pip...
pip install rarfile==4.0
pip install colorama==0.4.4
pip install msoffcrypto-tool==4.12.0
pip install pdfplumber==0.7.5
pip install chardet==5.1.0
) else (
echo Python not found. Please install Python first.
echo Download from: https://www.python.org/downloads/
pause
exit /b 1
)

echo.
echo Starting PyCrack...
python pycrack.py

pause
46 changes: 46 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# PyCrack Windows PowerShell Installer
Write-Host "PyCrack Windows Installer" -ForegroundColor Green
Write-Host ""

# Check if running as administrator
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "Please run this script as administrator (Right-click PowerShell and 'Run as administrator')" -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}

Write-Host "Running with administrator privileges..." -ForegroundColor Green
Write-Host "Installing packages for PyCrack..." -ForegroundColor Yellow
Write-Host ""

# Check if Python is installed
try {
$pythonVersion = python --version 2>&1
if ($LASTEXITCODE -eq 0) {
Write-Host "Python found: $pythonVersion" -ForegroundColor Green
Write-Host "Installing packages with pip..." -ForegroundColor Yellow

# Install required packages
pip install rarfile==4.0
pip install colorama==0.4.4
pip install msoffcrypto-tool==4.12.0
pip install pdfplumber==0.7.5
pip install chardet==5.1.0

Write-Host ""
Write-Host "Installation completed successfully!" -ForegroundColor Green
Write-Host "Starting PyCrack..." -ForegroundColor Yellow

# Start PyCrack
python pycrack.py
} else {
throw "Python not found"
}
} catch {
Write-Host "Python not found. Please install Python first." -ForegroundColor Red
Write-Host "Download from: https://www.python.org/downloads/" -ForegroundColor Yellow
Read-Host "Press Enter to exit"
exit 1
}

Read-Host "Press Enter to exit"
1 change: 0 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ cp ./pycrack.py /usr/bin/pycrack
echo "installetion complete"
echo "starting pycrack"
pycrack

Loading