https://github.com/qtc-de/strips
Simple python utility to strip comments from a PowerShell script
https://github.com/qtc-de/strips
comments evasion powershell strip
Last synced: 8 months ago
JSON representation
Simple python utility to strip comments from a PowerShell script
- Host: GitHub
- URL: https://github.com/qtc-de/strips
- Owner: qtc-de
- Created: 2020-04-17T12:13:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T12:14:00.000Z (almost 6 years ago)
- Last Synced: 2025-03-22T06:42:11.281Z (11 months ago)
- Topics: comments, evasion, powershell, strip
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### strips
-----
*strips* is just a super simple Python script to strip line based comments from PowerShell scripts.
Nothing really dedicated, I just wanted to backup it somewhere.
### Usage
-----
```
$ python3 ./strips -h
usage: strips [-h] infile outfile
Simple utility to strip comments from a PowerShell scripts. Does only work on 'full-line'
comments. Or in other words: Lines that contain a mix of valid code and comments are not
stripped.
positional arguments:
infile path to the powershell script
outfile path to the stripped powershell script
optional arguments:
-h, --help show this help message and exit
```