Code Monkey home page Code Monkey logo

script-security-telebot's Introduction

Script Security TeleBot

Sebuah bot Telegram untuk memindai dan mendeteksi kode berbahaya dalam dokumen, khususnya berfokus pada file ZIP dan skrip shell.

Memulai

Prasyarat

  • Python 3.x
  • Instal paket Python yang diperlukan dengan perintah:
    pip install python-telegram-bot==13.15

Instalasi

  1. Klon repositori:

    git clone https://github.com/RiProG-id/Script-Security-TeleBot.git
  2. Masuk ke direktori proyek:

    cd Script-Security-TeleBot
  3. Instal dependensi:

    pip install -r requirements.txt
  4. Gantilah 'BOT_TOKEN_ANDA' di main.py dengan token bot Telegram yang sesuai.

  5. Jalankan bot:

    python main.py

Perintah Bot

  • /start: Memulai bot dan menerima pesan selamat datang beserta tautan kode sumber.
  • Mengirim dokumen (ZIP atau skrip shell) memicu bot untuk memindai kode berbahaya.

Cara Kerja

  • Bot memindai file ZIP untuk menemukan kode berbahaya dalam file-file di dalamnya.
  • Bot memeriksa skrip shell untuk perintah dan pola yang dianggap berisiko.

Kode Berbahaya yang Dideteksi

Bot mendeteksi pola berbahaya berikut dalam dokumen:

  • rm -rf: Perintah hapus paksa secara rekursif.
  • if=/dev/null: Redireksi input ke perangkat null.
  • if=/dev/zero: Redireksi input ke perangkat zero.
  • cmd erase: Perintah Windows untuk menghapus file.
  • apparmor: Kerangka keamanan untuk Linux.
  • setenforce: Perintah Linux untuk mengatur mode penegakan.
  • shred -f: Menghapus dan mengganti isi file dengan aman.
  • ufw disable: Menonaktifkan Uncomplicated Firewall di Linux.
  • iptables -F: Menghapus semua aturan iptables di Linux.
  • setfacl: Mengatur daftar kontrol akses file di Linux.
  • /proc/sysrq_trigger: Memicu aksi pada kernel Linux melalui /proc/sysrq_trigger.
  • :(){ :|:& };:: Bom fork, sebuah fungsi shell berbahaya.

script-security-telebot's People

Contributors

riprog-id avatar rem01gaming avatar

Stargazers

 avatar

Watchers

 avatar

script-security-telebot's Issues

meтн

  • base64 obfuscation (relatively popular)
  • various flag combination for rm
  • rmdir
  • alias, symlink
  • probably more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.