GithubHelp home page GithubHelp logo

sevnup's Introduction

Sevnup MIPSel Firmware Simulation Tool

Introduction

Welcome to my script, designed specifically for Arch Linux. Other tools were not fully functional on this system, which was quite frustrating.

This is officially my first time uploading my tool to GitHub. I hope you all give it a star, and feel free to raise any issues!

from 2024.1.24 N1nEmAn

The current simulation tools such as FirmAE and FAT are very convenient, but sometimes, some new firmware requires a higher level of DIY simulation. This open-source project is based on Archlinux and is configured directly from the QEMU level. It can be booted into the file system without manual operations and retains a high level of customization. Contributions of other system versions are also welcome. IoTSec FoR FUN!

from 2024.3.28 N1nEmAn

   ███████╗███████╗██╗   ██╗███╗   ██╗██╗   ██╗██████╗ 
   ██╔════╝██╔════╝██║   ██║████╗  ██║██║   ██║██╔══██╗
   ███████╗█████╗  ██║   ██║██╔██╗ ██║██║   ██║██████╔╝
   ╚════██║██╔══╝  ╚██╗ ██╔╝██║╚██╗██║██║   ██║██╔═══╝ 
   ███████║███████╗ ╚████╔╝ ██║ ╚████║╚██████╔╝██║     
   ╚══════╝╚══════╝  ╚═══╝  ╚═╝  ╚═══╝ ╚═════╝ ╚═╝     

Features

This tool currently provides simulation of MIPSel firmware file systems. As I delve deeper into IoT security, more features will be developed in the future. Stay tuned!

Dependencies

Before using this script, make sure you have the following components installed:

  • QEMU

    yay -S qemu-user-static
  • tunctl (from the uml_utilities package)

    yay -S uml_utilities
  • Python 3

    sudo pacman -S python

Usage

  1. Clone the repository:

    git clone https://github.com/N1nEmAn/Sevnup.git
    cd Sevnup
  2. Run the script with the path to the squashfs-root as an argument:

     #At first it will download images
    ./run.sh /path/to/squashfs-root
  3. Follow the instructions provided by the script.

  4. If other steps are completed, you can run test.py to test whether it is successful.

  5. usegdb-multiarchto debug,command as follow:

    #if not install,install first
    yay -S gdb-multiarch
    #run as follow
    gdb-multiarch
    #then run as follow to debug kernel
    set architecture {arch}
    file {here fill in the location of the kernel} {here fill in the location of the program you need to debug(if any)}
    target remote :1234

    if you need to debug the program running in the virtual machine, you need to break at the address inside the program, and then break at the function name, and continue over. This is the operation of gdb, so I won't go into details.

Example

Here is a simple example provided for everyone's reference and convenience of use.

  • Quick tip: In the QEMU window, you can use Ctrl + Alt + + to zoom in the window.

image image image image netcore

sevnup's People

Contributors

n1neman avatar

Stargazers

yichen avatar  avatar Rabbit avatar  avatar  avatar DX3906 avatar Birdo avatar  avatar zer0-1s avatar Taoing avatar  avatar Xuanzhao avatar CuB3y0nd avatar

Watchers

 avatar

Forkers

andieqqq

sevnup's Issues

maybe typo in run.sh

in line 33 of run.sh

wget -p ./img https://people.debian.org/~aurel32/qemu/mipsel/vmlinux-2.6.32-5-4kc-malta

I guess it should be -P, which is upper case

Thanks for your script XD

ssh error root/root

image

in mipsel, use username 'root' and password 'root' to login.

how to login ?by ssh?
image

ssh failed when using root/root

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.