Skip to content

thedr0pperx/linenum.sh

Repository files navigation

🎯 LinEnum.sh - Security Education Project

Educational Security Project Next.js Vercel

Scripted Local Linux Enumeration & Privilege Escalation Checks
An educational security project teaching developers and security professionals why they should never blindly execute scripts from the internet.

🚨 The Problem

Every day, countless tutorials and documentation tell users to run commands like:

curl https://some-website.com/install.sh | bash

This is extremely dangerous. When you do this, you're:

  • ❌ Executing code you haven't reviewed
  • ❌ Trusting a remote server completely
  • ❌ Potentially compromising your entire system
  • ❌ Opening yourself to credential theft
  • ❌ Allowing backdoor installation
  • ❌ Risking malware or ransomware infection

💡 The Solution

LinEnum.sh demonstrates this risk in a harmless, educational way. When you run:

curl linenum.sh | bash

Instead of a malicious script, you get:

  1. A clear warning message about the dangers
  2. A friendly ASCII art Rickroll
  3. Your country logged for statistics (IP is NOT stored)

No harm done - just a valuable lesson learned! 🎓

🛡️ The Right Way

Always review scripts before executing them:

# ✅ DO THIS:
curl https://example.com/script.sh -o script.sh
cat script.sh  # Review the contents!
vim script.sh  # Or use your preferred editor
chmod +x script.sh
./script.sh

# ❌ DON'T DO THIS:
curl https://example.com/script.sh | bash

🌍 Features

  • Real-time Tracking: See who's falling for the trap in real-time
  • Global Statistics: Leaderboard showing which countries have the most "victims"
  • World Map: Visual representation of curl attempts worldwide
  • Educational Content: Clear explanations of why this practice is dangerous
  • Open Source: Full transparency - review our code before you judge!

🏗️ Tech Stack

  • Framework: Next.js 14 with App Router
  • Styling: Tailwind CSS with Matrix-inspired theme (inverted for light mode)
  • Database: Vercel KV (Redis) for real-time statistics
  • Geolocation: IP-based country detection
  • Deployment: Vercel Edge Functions
  • Language: TypeScript

🔒 Security & Privacy

  • No IP Storage: We use your IP only to determine country, then discard it immediately
  • Anonymous Statistics: We only store country codes for statistics
  • No Tracking Cookies: No third-party analytics or tracking
  • Open Source: Full transparency - all code is public
  • Educational Purpose: Data used only for demonstration

📊 API Endpoints

  • GET / - Main website (or rickroll script if curl)
  • GET /api/curl - Rickroll script endpoint
  • GET /api/curls/recent - Last 10 curl events
  • GET /api/curls/leaderboard - Top 10 countries
  • GET /api/curls/map - Countries that have curled

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is open source and available under the MIT License.

👨‍💻 Author

thedr0pperx

🙏 Acknowledgments

  • Original LinEnum.sh project (the real enumeration script)
  • rickrollrc for terminal rickroll inspiration
  • Security community for teaching proper script execution practices

⚠️ Disclaimer

This is an educational project. The "rickroll" is harmless and meant to teach a valuable security lesson. No malicious code is ever executed. Always review code before running it on your system.


Remember: Friends don't let friends pipe curl to bash! 🚫

If you learned something from this project, give it a ⭐ and share it with others!

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published