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

ConfigParser.NoSectionError: No section: 'main' #12

Open cuckoo-linux opened 5 years ago

cuckoo-linux commented 5 years ago

habo@habo-VirtualBox:~/HaboMalHunter$ sudo python AnalyzeControl.py -v -l ./test/bin/read.64.elf Traceback (most recent call last): File "AnalyzeControl.py", line 688, in ret = main(len(sys.argv), sys.argv) File "AnalyzeControl.py", line 615, in main cfg = init_arguments(argv) File "AnalyzeControl.py", line 156, in init_arguments cfg = init_cfg(args.config_path,args) File "AnalyzeControl.py", line 96, in init_cfg for k,v in conf_parser.items(SECTION_DEF): File "/usr/lib/python2.7/ConfigParser.py", line 642, in items raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'main'

jingleyang commented 5 years ago

hi, The issue is related with config.ini. By default, the configuration file is config.ini in the first level of source code. Please try to use option -e CONFIG_PATH , to point config file path explicitly. And check whether a section named [main] exists in the config file. Thanks