chvancooten / NimPlant

A light-weight first-stage C2 implant written in Nim.
MIT License
779 stars 109 forks source link

nim Error: undeclared identifier: 'obf' #16

Closed ybdt closed 1 year ago

ybdt commented 1 year ago

in patches.nim file, i have installed

import winim/lean import dynlib import strenc

but when compile, it still happened the above error, and i have search "obf" globally, can't found it defination

chvancooten commented 1 year ago

Hi, could you please follow the issue template for issues like this? Without version numbers or a more accurate description of what is changed it is near impossible to reproduce.

The definition of the obf macro is here: https://github.com/chvancooten/NimPlant/blob/main/client/util/strenc.nim#L17

Please double check that you went through all the steps of the troubleshooting steps (here: https://github.com/chvancooten/NimPlant#troubleshooting), and that you didn't make any changes relevant to the code linked above. If you import the original strenc manually you can get rid of the obf() calls as that macro will automatically rewrite (most) strings.

chvancooten commented 1 year ago

Closing due to inactivity.