Tencent / HaboMalHunter

HaboMalHunter is a sub-project of Habo Malware Analysis System (https://habo.qq.com), which can be used for automated malware analysis and security assessment on the Linux system.
Other
725 stars 220 forks source link

Hardcoded file separator #24

Open QiAnXinCodeSafe opened 4 years ago

QiAnXinCodeSafe commented 4 years ago

https://github.com/Tencent/HaboMalHunter/blob/74fd9fb7ec59321448c6b397eabb0464f2a649a4/iot_hunter/dynamic_analysis/PluginManager.py#L21

The path split symbol problem is different for different operating systems. Hard-coded file separators should not be used. Instead, use a platform-independent API provided by the language library,such as os.path.join or os.sep