pyt (python secure code scanner) wrapper


Quick and dirty wrapper as pyt doesn't support scanning directory from first look


https://gist.github.com/yehgdotnet/074ab79528ccdac7653bb641beb3b7c5



# https://github.com/python-security/pyt - python secure code scanner

@echo off 
IF %1.==. GOTO No1
IF %2.==. GOTO Missing_Argument

set dir=%1
set type=%2

dir /s /b %dir% | find ".py" > source_listing.txt
for /F "tokens=*" %%A in (source_listing.txt) do echo. && echo Scanning %%A && pyt -a %type% -f "%%A"

GOTO End1

:No1
  GOTO Missing_Argument
:Missing_Argument
  @echo.
  echo Usage: scan.bat source_directory type(Flask, Django,Every or Pylons)
  @echo.
  echo e.g.
  echo scan "example\django.nV" Django
GOTO End1

:End1

Popular posts from this blog

CubeCart 3.0.20 (3.0.x) and lower | Multiple Cross Site Scripting Vulnerabilities

java.com | Arbitrary URL Redirect Vulnerability