EnglishFrenchSpanish

OnWorks favicon

ragg2 - Online in the Cloud

Run ragg2 in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ragg2 that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ragg2 - radare2 utility to run programs in exotic environments

SYNOPSIS


ragg2 [-a arch] [-b bits] [-k kernel] [-f format] [-o file] [-i shellcode] [-I path]
[-e encoder] [-B hexpairs] [-c k=v] [-C file] [-d off:dword] [-D off:qword]
[-w off:hexpair] [-p padding] [-FOLsrxvh]

DESCRIPTION


ragg2 is a frontend for r_egg, compile programs into tiny binaries for x86-32/64 and arm.

This tool is experimental and it is a rewrite of the old rarc2 and rarc2-tool programs as a
library and integrated with r_asm and r_bin.

Programs generated by r_egg are relocatable and can be injected in a running process or on-
disk binary file.

ragg2-cc is another tool that comes with r2 and it is used to generate shellcodes from C
code. The final code can be linked with rabin2 and it is relocatable, so it can be used to
inject it on any remote process.

ragg2-cc is conceptually based on shellforge4, but only linux/osx x86-32/64 platforms are
supported.

DIRECTIVES


The rr2 (ragg2) configuration file accepts the following directives, described as key=value
entries and comments defined as lines starting with '#'.

-a arch set architecture x86, arm

-b bits 32 or 64

-k kernel windows, linux or osx

-f format select binary format (pe, elf, mach0)

-o file output file to write result of compilation

-i shellcode
specify shellcode name to be used (see -L)

-e encoder specify encoder name to be used (see -L)

-B hexpair specify shellcode as hexpairs

-c k=v set configure option for the shellcode encoder. The argument must be key=value.

-C file include contents of file

-d off:dword
Patch final buffer with given dword at specified offset

-D off:qword
Patch final buffer with given qword at specified offset

-w off:hexpairs
Patch final buffer with given hexpairs at specified offset

-p padding Specify generic paddings with a format string.

-F autodetect native file format (osx=mach0, linux=elf, ..)

-O use default output file (filename without extension or a.out)

-I path add include path

-s show assembler code

-x execute (just-in-time)

EXAMPLE


$ cat hi.r
/* hello world in r_egg */
write@syscall(4);
exit@syscall(1);

main@global(128) {
.var0 = "hi!\n";
write(1,.var0, 4);
exit(0);
}
$ ragg2 -O -F hi.r
$ ./hi
hi!

$ cat hi.c
main() {
write(1, "Hello0, 6);
exit(0);
}
$ ragg2 hi.c
$ ./hi.c.bin
Hello

Use ragg2 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

  • 1
    7za
    7za
    7za - A file archiver with highest
    compression ratio ...
    Run 7za
  • 2
    7zr
    7zr
    7zr - A file archiver with highest
    compression ratio ...
    Run 7zr
  • 3
    cpan
    cpan
    cpan - easily interact with CPAN from
    the command line ...
    Run cpan
  • 4
    cpan2debp
    cpan2debp
    dh-make-perl - Create debian source
    packages from Perl modules ...
    Run cpan2debp
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad