remove unessential things

remove unessential things from scripts
This commit is contained in:
microsvuln 2021-04-03 16:04:14 +04:00
parent d5fc03b718
commit 050f331c54
5 changed files with 9 additions and 9 deletions

View File

@ -52,11 +52,11 @@ def static_analysis(file,file2,cur,db) :
f.close()
def copy_tokens(cur, tokenpath) :
subprocess.call(["cp " + cur + "/" + "strcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["cp " + cur + "/" + "strncmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["cp " + cur + "/" + "memcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["cp " + cur + "/" + "lits/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["cp " + cur + "/" + "strtool-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["mv " + cur + "/" + "strcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["mv " + cur + "/" + "strncmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["mv " + cur + "/" + "memcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["mv " + cur + "/" + "lits/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["mv " + cur + "/" + "strtool-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["find "+tokenpath+" -size 0 -delete"],shell=True)

View File

@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
print("num : %s" % num1)
#print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

View File

@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
print("num : %s" % num1)
#print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

View File

@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
print("num : %s" % num1)
#print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

View File

@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
print("num : %s" % num1)
#print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")