View Single Post
  #2  
Old 03-07-2022, 11:08
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 343
Rept. Given: 142
Rept. Rcvd 20 Times in 12 Posts
Thanks Given: 169
Thanks Rcvd at 130 Times in 43 Posts
TQN Reputation: 20
Use this IDAPython script
Code:
def applySigFile():
    file = ida_kernwin.ask_file(0, "*.sig", "Select sig file to apply")
    if not file:
        print("applySigFile: user cancelled")
        return

    print("Apply sig file %s" % file)
    ida_funcs.plan_to_apply_idasgn(file)


def applySigDir():
    sig_dir = os.path.join(os.path.dirname(sys.executable), 'sig')
    sig_dir = str(QtWidgets.QFileDialog.getExistingDirectory(None, "Select Your Signatures Directory", sig_dir))
    if sig_dir == "":
        print("applySigDir: user cancelled")
        return

    for name in os.listdir(sig_dir):
        if name[-4:] == '.sig':
            name = os.path.join(sig_dir, name)
            print("Apply sig file %s" % name)
            ida_funcs.plan_to_apply_idasgn(name)
Same as til files
Reply With Quote
The Following 4 Users Say Thank You to TQN For This Useful Post:
Abaddon (03-07-2022), b30wulf (03-08-2022), Kurapica (03-07-2022), sh3dow (04-30-2022)