403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/scanmem/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/scanmem/files/patch-maps.c
--- maps.c.orig	2017-10-13 21:53:16 UTC
+++ maps.c
@@ -31,7 +31,9 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 #include <stdbool.h>
 #include <unistd.h>
 
@@ -62,7 +64,7 @@ bool sm_readmaps(pid_t target, list_t *regions, region
         return false;
 
     /* construct the maps filename */
-        snprintf(name, sizeof(name), "/proc/%u/maps", target);
+        snprintf(name, sizeof(name), "/compat/linux/proc/%u/maps", target);
 
         /* attempt to open the maps file */
         if ((maps = fopen(name, "r")) == NULL) {
@@ -73,7 +75,7 @@ bool sm_readmaps(pid_t target, list_t *regions, region
         show_info("maps file located at %s opened.\n", name);
 
         /* get executable name */
-        snprintf(exelink, sizeof(exelink), "/proc/%u/exe", target);
+        snprintf(exelink, sizeof(exelink), "/compat/linux/proc/%u/exe", target);
         linkbuf_size = readlink(exelink, exename, MAX_LINKBUF_SIZE - 1);
         if (linkbuf_size > 0)
         {

Youez - 2016 - github.com/yon3zu
LinuXploit