Giter Site home page Giter Site logo

scare's Introduction

scare

This is a little assembly repl and emulator for fun. The primary usecase is to enable you to quickly see what some assembly code does. It's not meant to be a serious emulation solution.

Currently only targeting x64, planning to add more architectures (mainly arm and riscv). This version is probably buggy and has a bunch of edge cases to address.

Don't 4get 2 have fun :)

Requirements

  • keystone-engine
  • unicorn

Usage

Run: python3 scare.py

Help file

[x64]400000> /
scare help

USAGE

Type assembly code into the repl, line by line.

COMMANDS

/ /? /help           -- Open help menu
/x /exit /q /quit    -- Quit the program
/l /list             -- List the current program
/back n              -- Go back n number of lines
/save file.asm       -- Save current listing to file
/load file.asm       -- Load listing from file (overwrites current program)
/run                 -- Runs the program
/read 0xaddress size -- Read (size) amount of bytes from (0xaddress) [EXPERIMENTAL]

CONFIG

/c or /config  -- Show configurable options
/c OPTION on   -- Turn config option on
/c OPTION off  -- Turn config option off

Going backwards in the assembly listing

mov eax, 0x5555
mov ebx, 0xaaaa
xor eax, ebx
/l
/back 2
mov ecx, 0xbbbb
add eax, ecx

Loading a file, saving a file

/load examples/test.asm
/l
/run
/read 0x400ff0 32
pop rdx
/save test2.asm

Using config options

not rax
/config x86 xmm on
movq xmm4, rax
movaps xmm5, xmm4

Gallery

loading and running a program

going back in the program

using config options

scare's People

Contributors

netspooky avatar

Watchers

 avatar

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.