--------start------------ [!] getmd5_error : /app/docker.sh [Errno 13] Permission denied: '/app/docker.sh' [!] getmd5_error : /app/run.sh [Errno 13] Permission denied: '/app/run.sh' [!] getmd5_error : /app/flag.py [Errno 13] Permission denied: '/app/flag.py' [*] pre work end! Traceback (most recent call last): File "monitor.py", line 154, in <module> if md5_dict[filekey] != FILE_MD5_DICT[filekey]: KeyError: '/app/search.php'怎么解决
时间: 2024-01-28 09:02:47 浏览: 120
这个错误表明在运行monitor.py脚本时发生问题。首先,检查您是否具有足够的权限来访问`/app`目录下文件。您可以尝试`sudo`命令以管理员身份运行脚本,例如:
```
sudo python monitor.py
```
如果您仍然遇到权限错误,请确保您具有读取`/app`目录下文件的权限。您可以使用以下命令更改文件和目录的权限:
```
sudo chmod +r /app/search.php
```
这将为`/app/search.php`文件添加读取权限。根据您的实际情况,可能需要为其他文件也执行类似的操作。
如果问题仍然存在,可能是因为脚本中引用的某些文件或变量不存在。您可以检查`monitor.py`脚本中是否正确引用了`FILE_MD5_DICT`字典,并确保该字典中包含了'/app/search.php'键。
如果问题仍然存在,请提供更多关于您的情况和脚本的详细信息,以便我能够更好地帮助您解决问题。
相关问题
c:/users/administrator/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\10D2928088492A3941C0D3FC87B1F460\libraries\ESP_Async_WebServer\WebAuthentication.cpp.o:(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_starts' c:/users/administrator/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\10D2928088492A3941C0D3FC87B1F460\libraries\ESP_Async_WebServer\WebAuthentication.cpp.o: in function `getMD5(unsigned char*, unsigned short, char*)': c:\Users\Administrator\Documents\Arduino\libraries\ESP_Async_WebServer\src/WebAuthentication.cpp:73: undefined reference to `mbedtls_md5_starts' collect2.exe: error: ld returned 1 exit status exit status 1 Compilation error: exit status 1
这个错误是由于链接器(ld.exe)找不到对应的函数(mbedtls_md5_starts)导致的。这可能是由于你的代码中使用了未定义的函数或库文件没有正确链接导致的。要解决这个问题,你可以尝试以下几种方法:
1. 确保你的代码中包含了正确的头文件和库文件。检查你的代码中是否包含了相关的头文件,并且确认你安装了正确版本的库文件。
2. 检查你的库文件路径是否正确。确保你将库文件放置在正确的位置,并且在编译时已经正确地配置了库文件路径。
3. 更新你的库文件。有时候,这种错误可能是由于库文件版本不兼容导致的。尝试更新你使用的库文件到最新版本,或者寻找其他可用的替代库。
4. 检查你的代码中是否存在其他错误。有时候,这种链接错误可能是由于其他代码错误引起的。仔细检查你的代码,并确保没有其他语法或逻辑错误。
如果以上方法都无法解决问题,建议你在相关论坛或社区上提问,以获得更多专业人士的帮助。
has no member named ‘__getMD5Sum’
As an AI language model, I cannot determine the exact context in which you encountered this error. However, in general, this error message indicates that the code is trying to access a member function or variable called '__getMD5Sum' in a class or struct that does not have such a member. This can happen if there is a typo in the member name, or if the member was not properly defined or declared in the class or struct.
To fix this error, you need to ensure that the member function or variable '__getMD5Sum' is properly defined and declared in the class or struct. Check for any typos or syntax errors in the member name, and make sure that it is declared as public or protected if it needs to be accessed outside of the class or struct. If you are still having trouble, you may need to provide more information or context for me to assist you further.
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)