You've already forked metasploit-payloads
mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-08-22 13:47:14 +02:00
c
meterpreter
content
data
deps
output
source
DelayLoadMetSrv
ReflectiveDLLInjection
backcompat
bionic
client
common
elevator
extensions
bare
espia
extapi
incognito
kiwi
lanattacks
mimikatz
networkpug
posix_sample
test.c
priv
sniffer
stdapi
jpeg-8
screenshot
server
doxygen.h
tools
workspace
.gitignore
.gitmodules
.travis.yml
LICENSE
Makefile
Makefile.common
README.md
doxygen.cnf
make.bat
21 lines
361 B
C
21 lines
361 B
C
#include "../../common/common.h"
|
|
|
|
#include <sys/errno.h>
|
|
#include <fcntl.h>
|
|
|
|
/*
|
|
* trivial example to test loading functionality
|
|
*/
|
|
int
|
|
InitServerExtension(Remote *remote)
|
|
{
|
|
char *buf = "Veni Vedi Vici!\n";
|
|
int fd;
|
|
|
|
if ((fd = open("/tmp/meterpreter.txt", O_CREAT|O_WRONLY|O_TRUNC, 0200)) < 0)
|
|
return (errno);
|
|
|
|
write(fd, buf, strlen(buf));
|
|
close(fd);
|
|
}
|