Giter Club home page Giter Club logo

mimic's People

Contributors

emptymonkey avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mimic's Issues

Stuck at "Searching for main()" with revsh

When issued with revsh running as root:

/home/code/mimic/mimic -b -e "/home/code/revsh/revsh -k"

it gets stuck at "Searching for main()..."

Launching child... Success!
Waiting for child to attach... Success!
Initializing ptrace_do... Success!
Determining stack state... Success!
Politely requesting name change... Success!
Searching for main()...

On controller side connection won't complete and it will even crash after Ctrl+C the stuck mimic instance

sudo revsh -vvv -k -c

Controller: Listening on 192.168.11.33:443.
Controller: Connected from 192.168.11.72:47440.
init_io_control(): SSL_accept(1f42a00): Success
do_control(): init_io_control(1f24120): Success

Mimic breaks

After installing mimic via instructions shown in REAME, when I simply run /mimic -e "/usr/bin/bash" , after few seconds I get this error:

/usr/sbin/apache2: start: File or directory doesn't exist
!WIFSTOPPED()
Error: libc register setup not detected. Aborting!
mimic: ptrace(13, 1901, 0, 7ffd7e4caad0): No such process
mimic: ptrace_do_syscall(16c5ca0, 11, 7f5862303000, 8, 0, 0, 0, 0): Operation not permitted
mimic: ptrace(13, 1901, 0, 16c5cb0): No such process
mimic: ptrace(17, 1901, 0, 0): No such process

I'm using Fedora 35, kernel 5.16.14-200 with SELinux in permissive mode.

Thanks!

PD: On the other hand, I've seen that before breaking, mimic itself is shown in ps -e/top, shouldn't it be hidden? Maybe this is worthy for another issue...

Trying to build mimic

sirius@blackb0x:~/sploits/PID-HIDER/mimic/mimic$ make
gcc -std=gnu99 -Wall -Wextra -Os -c -o string_to_vector.o string_to_vector.c
gcc -std=gnu99 -Wall -Wextra -Os -c -o wordexp_t_to_vector.o wordexp_t_to_vector.c
gcc -std=gnu99 -Wall -Wextra -Os -I../ptrace_do -L../ptrace_do string_to_vector.o wordexp_t_to_vector.o -o mimic mimic.c -lptrace_do
mimic.c:50:26: fatal error: libptrace_do.h: No such file or directory
#include "libptrace_do.h"
^
compilation terminated.
make: *** [mimic] Error 1

Any help would be very appreciated :)

Command without Absolute Path

Just wanted to say this tool is amazing!!!
It works perfectly against /proc and sys based monitoring tools such as ps, htop, and even unhide, which is pretty nuts. And I got essays on pentesting, so I would lovely to integrate this within my scripts.

Anyway, is there any possible feature to use commands without it's binary path, since all i use is based on my system's environment variable. For now, I think I'll create a new branch so that i can support this version of mimic. Hope the development still continues, carry on !

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.