scodescanner icon indicating copy to clipboard operation
scodescanner copied to clipboard

ValueError: Invalid format string

Open SkinAir opened this issue 2 years ago • 6 comments

logger.info("Starting the scanner - " + str(time.strftime("%Y-%m-%d-%hh-%MM-%ss")) +'\n')

ValueError: Invalid format string scscanner.py line:39 I changed it to logger.info("Starting the scanner - " + str(time.strftime("%Y-%m-%d")) +'\n') But I'm not sure if it's accurate,Because there is no error in the operation, but there is no result image

SkinAir avatar Oct 10 '22 15:10 SkinAir

image There seems to be some new mistakes

SkinAir avatar Oct 10 '22 15:10 SkinAir

Could you be able to run the tool on a basic folder? - For ex - Try this repo. https://github.com/oktadev/sql-injection-in-php

Also please give -o test.txt filename

Also please check if you are using Python3 - Working in Python 3.9.10

agrawalsmart7 avatar Oct 10 '22 15:10 agrawalsmart7

您能否在基本文件夹上运行该工具?- 对于前 - 试试这个 repo。https://github.com/oktadev/sql-injection-in-php

也请给出 -o test.txt 文件名

另请检查您是否使用 Python3 - 使用 Python 3.9.10

image You mean, execute the following command python scscanner.py php sql-injection-in-php -o test.txt

SkinAir avatar Oct 10 '22 15:10 SkinAir

No, try this -

python3 scscanner.py php --folder sql-injection-in-php -o test.txt

agrawalsmart7 avatar Oct 10 '22 17:10 agrawalsmart7

image Maybe it's the compatibility between Windows and Linux. When I use ubuntu, it succeeds. In addition to adding "import sys" to the helper.py file, Thank you for your explanation

SkinAir avatar Oct 11 '22 07:10 SkinAir

Yes, I guess the problem resides in %hh, Windows supports %tt. Not sure, but I will check this issue and update the code accordingly.

And thanks, I have added the import. :)

agrawalsmart7 avatar Oct 11 '22 14:10 agrawalsmart7