1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-11-24 01:26:22 +01:00
PEASS-ng/linPEAS/builder/linpeas_builder.py
Carlos Polop 4b40537ea4 finish
2021-06-17 23:13:11 +02:00

19 lines
476 B
Python

from .src.peasLoaded import PEASLoaded
from .src.linpeasBuilder import LinpeasBuilder
from .src.yamlGlobals import FINAL_LINPEAS_PATH
import os
import stat
#python3 -m builder.linpeas_builder
def main():
ploaded = PEASLoaded()
lbuilder = LinpeasBuilder(ploaded)
lbuilder.build()
lbuilder.write_linpeas(FINAL_LINPEAS_PATH)
st = os.stat(FINAL_LINPEAS_PATH)
os.chmod(FINAL_LINPEAS_PATH, st.st_mode | stat.S_IEXEC)
if __name__ == "__main__":
main()