Skip to content

Commit a4f9d7b

Browse files
committed
Added interactive proxy automation
1 parent 236e22f commit a4f9d7b

11 files changed

+2073
-670
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#Dynamically generated logs and test files
22
/logs/*
33
/MagicMock/*
4+
/profiles/*
45

56
# Byte-compiled / optimized / DLL files
67
__pycache__/

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,39 @@ The tool will automatically:
8787
- Store logs in the `logs` directory with detailed request and response information in Postman Collection format
8888
- Send all requests through the detected proxy
8989

90+
#### Saving Configuration
91+
92+
To save your current settings (including proxy settings and target profile) for future runs:
93+
94+
```bash
95+
python postman2burp.py --collection "your_collection.json" --target-profile "your_environment.json" --save-config
96+
```
97+
98+
This will create a `config.json` file that will be used automatically in future runs, even if you don't specify the same parameters again.
99+
90100
#### Extracting Variables
91101

92102
To extract all variables from a collection:
93103

94104
```bash
95-
# Print all variables in the collection
105+
# Interactive mode - prompts for values for each variable
96106
python postman2burp.py --collection "your_collection.json" --extract-keys
97107

108+
# Print all variables in the collection
109+
python postman2burp.py --collection "your_collection.json" --extract-keys print
110+
98111
# Generate a template environment file with all variables
99112
python postman2burp.py --collection "your_collection.json" --extract-keys "environment_template.json"
100113
```
101114

115+
The interactive mode will:
116+
- Extract all variables from the collection
117+
- Display all variables with their original values (if available)
118+
- Prompt you to enter a value for each variable (press Enter to use original value or skip)
119+
- Create a profile file with only the variables that have values
120+
- Automatically save the profile in the `environments` directory with a timestamp
121+
- Provide the command to run with your new profile
122+
102123
### Manual Installation
103124

104125
| Step | Command |
@@ -122,7 +143,7 @@ For detailed usage instructions, see the [Wiki](https://github.com/darmado/postm
122143
| 📊 Logging | Logs request results | Easy troubleshooting and verification |
123144
| 📋 Postman-Compatible Logs | Generates logs in Postman Collection format | Logs can be imported directly into Postman |
124145
| 🔍 Proxy Verification | Verifies proxy before sending requests | Prevents failed test runs |
125-
| ⚙️ Configuration File | Stores settings in config.json | Reuse configurations across runs |
146+
| ⚙️ Configuration File | Stores settings in config.json | Reuse configurations across runs including target profiles |
126147
| 🔑 Variable Extraction | Extracts variables from collections | Easily create environment templates or view all variables |
127148

128149
## 🎯 Use Cases

0 commit comments

Comments
 (0)