This extension copies the selected request(s) to the clipboard as PowerShell object assignments. Standard or Base64 formats are available, with Base64 being the best option for binary data such as file uploads. Copied data also includes the necessary command to invoke the web request(s).
Suggestions for improvement, feedback and comments will be much appreciated.
- Install gradle (https://gradle.org/)
- Download the repository.
$ git clone https://github.com/AresS31/copy-as-powershell-requests
$ cd .\copy-as-powershell-requests\- Create the standalone jar:
$ gradle fatJarIn Burp Suite, under the Extender/Options tab, click on the Add button and load the copy-as-powershell-requests-all jar file located in the .\build\libs folder.
- Source code optimisation.
Original inspiration by PortSwigger's copy as curl command function.
Copyright 2018 Alexandre Teyar
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.