Comments (13)
Hmm, It should be in /usr/include/asm/unistd_32.h
which gets included from asm/unistd.h
.
I see your script does ln -s /usr/include/asm-generic /usr/include/asm
, instead of using the arch ones.
If you really need to do that for some reason, you can probably add -D__NR_modify_ldt=123
to the Makefile CFLAGS in the peloader directory...
from loadlibrary.
If I don't include the ln -s
I get the following error:
cc -O3 -march=native -ggdb3 -m32 -std=gnu99 -fshort-wchar -Wno-multichar -Iinclude -DNDEBUG -D_GNU_SOURCE -I. -Iintercept -Ipeloader -c -o mpclient.o mpclient.c
mpclient.c:31:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'mpclient.o' failed
make: *** [mpclient.o] Error 1
from loadlibrary.
Hmm, does apt-get install linux-libc-dev:i386
provide it? (I'm not on Ubuntu right now)
from loadlibrary.
I tested on Ubuntu, I think apt-get install libc6-dev:i386 gcc-multilib
is enough. I added that to the README.
from loadlibrary.
@blacktop You adding to this to your malice?
from loadlibrary.
Those packages are not found on ubuntu.
I made a small pull request with the packages that I did find that I think correlate with what you need?
from loadlibrary.
@thebetterjort yes I want to if it works.
I guess I probably need to use the GPL license on that plugin then?
@taviso what is your understanding of GPL with respects to me running your tool in a docker container, but not changing it in any way?
from loadlibrary.
I appended your license to mine, please let me know if that is satisfactory?
and again @taviso
you are THE MAN!!!
from loadlibrary.
Thanks, I guess we must be on different Ubuntu versions and the packages were renamed! I'll figure out which versions need which packages.
It's fine to run it and make any changes you like, the GPL only matters if you want to share your changes with other people, then the changes have to be GPL as well - that's basically it!
from loadlibrary.
@taviso @blacktop Agree! I'm just doing a straight build of this on Ubuntu and still getting the original error - but now I can't find the relevant package:
sudo apt-get update && apt-get install libc6-dev:i386 gcc-multilib
E: Unable to locate package libc6-dev:i386
from loadlibrary.
Sorry - just apt-get install gcc-multilib
beat this one
from loadlibrary.
Apologies for the trickle feed - now mpclient won't build:
/usr/include/bits/stdio.h:117: undefined reference to `__getdelim'
peloader/libpeloader.a(util.o): In function `IsDebuggerPresent':
/home/ubuntu/src/loadlibrary/peloader/util.c:65: undefined reference to `__stack_chk_fail'
peloader/libpeloader.a(extra.o): In function `process_extra_exports':
/home/ubuntu/src/loadlibrary/peloader/extra.c:52: undefined reference to `hcreate_r'
/home/ubuntu/src/loadlibrary/peloader/extra.c:59: undefined reference to `hsearch_r'
/home/ubuntu/src/loadlibrary/peloader/extra.c:71: undefined reference to `__stack_chk_fail'
peloader/libpeloader.a(extra.o): In function `cleanup_extra_exports':
/home/ubuntu/src/loadlibrary/peloader/extra.c:37: undefined reference to `hdestroy_r'
collect2: error: ld returned 1 exit status
Makefile:27: recipe for target 'mpclient' failed
make: *** [mpclient] Error 1
Any ideas? Thanks!
from loadlibrary.
Fixed via @blacktop 's Docker image - thanks + sorry!
from loadlibrary.
Related Issues (20)
- APIs patching fails with selinux enabled
- Unable to load multiple dll images HOT 5
- mpclient: failed to resolve function HOT 16
- __rsignal(RSIG_BOOTENGINE) returned failure, missing definitions? HOT 13
- scan(): __rsignal(RSIG_SCAN_STREAMBUFFER) returned failure, file unreadable HOT 2
- Engine version 1.349.149.0 (2021/09/04) breaks mpclient HOT 2
- Replacing a thiscall function HOT 1
- Trying to load library and link to module HOT 2
- Is there any way to load a dll depends on msvcrt*.dll
- About msvc##.dll solution
- mpclient fails with latest defender update. HOT 2
- Trace/breakpoint trap (core dumped) HOT 2
- lastest windows defender can't work
- Segmentation fault at fixup_reloc HOT 3
- mpclient: function at 0x5a741c8a attempted to call an unknown symbol HOT 6
- malware not detected, while it should HOT 4
- Possible to check the virus database version and timestamp?
- MPClient - No debugging symbols found HOT 1
- Engine version 1.339.932.0 (2021/05/18) breaks mpclient HOT 3
- Take care of floating point registers during calling convention switches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loadlibrary.