Coder Social home page Coder Social logo

go-bot's Introduction

simple bot

a simple backdoor/remote-admin-tool for practice. It's been written in GO to easy cross-compiling static binary for different architectures and OSes.

Features

  • reverse connect
  • encrypted connection
  • built-in TCP multiplexing
  • socks5 Proxy (cmd 'CONNECT' only)
  • shell
  • file operations
  • self update
  • downloader
  • task, schedule
  • Dos, DDoS
  • miner
  • connection in simple tcp
  • hide connection in http/https/ws
  • run in P2P mode

bot/client

key

  • RSA Pub * 1 for connect to hub

ops

  • basic:
    • info: pull info
    • csh: shell
    • fastN: socks
    • reconn: re-connect
    • kill: self-exit
  • mod:
    • ppend: send SIGTERM (15) to parent process
    • ppkill: send SIGKILL (9) to parent process
    • psig: send signal to process
  • extra: some are buggy
    • dodaemon: daemonize
    • [?] apoptosis: remove self's binary without exit
    • [?] rebirth: put self's binary back and re-start
    • [?] evolution: self-update, pull binary and re-start itself
  • fs: file operations
    • fs: top op code
      • get: read file to stream
      • push: save stream to file
      • del: delete file/directory
      • call: execute file
      • mv: rename/move
      • mkdir: make directory
  • task: for tasks/jobs/schedules
    • task: top op code
    • add:
    • del:
    • start:
    • stop:
    • ls:

build

only enable basic op: go build -ldflags='-s -w' -tags="" bot.go

enable mod and extra op: go build -ldflags='-s -w' -tags="extra mod" bot.go

enable all op: go build -ldflags='-s -w' -tags="all" bot.go

hub server

A server run with public IP that can be connected.

functions to add

  • auto pull bot info
  • push binary for update old version bot
  • push tasks/woks for bot to run
  • statistics for IP, uptime, bandwidth...etc.

key

  • RSA Priv * n for bot
  • ECDSA Pub * n to check authorized admin

build

go build hub.go share.go

admin tool

A simple CLI tool to operate bots via hub.

commands

  • bot
    • ls [id | addr | time | rtt] : list all bot on hub by ...
    • kill
    • reconn
  • local
    • ls : list local side server
    • bind $bot_id $bind_addr $mode $argv... : bind server (eg. socks5) on local side
    • stop $bind_addr

key

  • RSA Pub * 1 for connect to hub, same as bot
  • ECDSA Priv * 1 for hub to check authorized

build

go build admin.go share.go

proxys.go

[WIP] socks5 proxy server for auto switch between bots use round-robin. With web API/UI for user operate, plan to replace admin tool.

planning features

  • socks5 proxy server with auto switch between all bots in a hub
  • select single/multiple bots for proxy auto switch
  • multiple hub connection
  • list all bots on hub
  • select single/multiple bots for operate

other tools

  • genkeys.go : RSA & ECDSA keys generator

go-bot's People

Contributors

cs8425 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-bot's Issues

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.