maaaaz / androwarn

Yet another static code analyzer for malicious Android applications
GNU Lesser General Public License v3.0
473 stars 159 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character u'\u02ce' in position 34: ordinal not in range(128) #24

Open sadshade opened 4 years ago

sadshade commented 4 years ago

APP - https://play.down-apk.com/download/by-token/download?token=AOTCm0Q2S0Y9oJJYCbac4h6T2MtUEqMt2A1iNDyeBiKzOa_6tgOctmDhrJ_IC3nF9T9ckMZ0CHHh8m1O-AwpnEThBK6tduUM8l2HM3AraV0mn-J1VXgyO3BCRLDPV6AQ_oY9jGLwYIaVDb8zZCqrMuUZLx6QlPTjQdCPRp5luKFtqeOZgouR2XkB733YdqNfWI8RpTt5kfyW5GtBBS2iMKhTBH5jbT0bPE3jXFvKDk-CQwx8sDpVg4o_ZaG5i_IhA4NFTLJIs4OhmaQqltTIo-zUw_LA-7QWi5OEZXvmVEyVYROJGtW_YTazwSGYcU_NsfhHsjBJ5J7tr6n50Xv9HE7t5_TtctotHDNJElLPbps&cpn=c-GXKuyrIhX4S4QD&name=kz.anytime.mobile.android_20.285

# python2 androwarn.py -i kz.anytime.mobile.android_20.285.apk -v 3 -w
[+] Androwarn version 1.6

[+] Loading the APK file...
Traceback (most recent call last):
  File "androwarn.py", line 96, in <module>
    main()
  File "androwarn.py", line 86, in main
    data = perform_analysis(options.input, a, d, x, options.with_playstore_lookup)
  File "/data/Learning/Labs/Mobile/Android/androwarn/warn/analysis/analysis.py", line 65, in perform_analysis
    ( 'device_settings_harvesting',              gather_device_settings_harvesting(x) ),
  File "/data/Learning/Labs/Mobile/Android/androwarn/warn/search/malicious_behaviours/device_settings.py", line 102, in gather_device_settings_harvesting
    result.extend( detect_log(x) )
  File "/data/Learning/Labs/Mobile/Android/androwarn/warn/search/malicious_behaviours/device_settings.py", line 44, in detect_log
    for registers in data_flow_analysis(structural_analysis_results, x):
  File "/data/Learning/Labs/Mobile/Android/androwarn/warn/core/core.py", line 412, in data_flow_analysis
    registers = backtrace_registers_before_call(x, parent_method, calling_offset)
  File "/data/Learning/Labs/Mobile/Android/androwarn/warn/core/core.py", line 239, in backtrace_registers_before_call
    instruction_name, local_register_number, local_register_value, registers_found = match_current_instruction(current_instruction, registers_found)
  File "/data/Learning/Labs/Mobile/Android/androwarn/warn/core/core.py", line 67, in match_current_instruction
    current_instruction = "{} {}".format(current_instruction.get_name(), current_instruction.get_output())
UnicodeEncodeError: 'ascii' codec can't encode character u'\u02ce' in position 34: ordinal not in range(128)