@@ -87,18 +87,39 @@ The tool will automatically:
87
87
- Store logs in the ` logs ` directory with detailed request and response information in Postman Collection format
88
88
- Send all requests through the detected proxy
89
89
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
+
90
100
#### Extracting Variables
91
101
92
102
To extract all variables from a collection:
93
103
94
104
``` bash
95
- # Print all variables in the collection
105
+ # Interactive mode - prompts for values for each variable
96
106
python postman2burp.py --collection " your_collection.json" --extract-keys
97
107
108
+ # Print all variables in the collection
109
+ python postman2burp.py --collection " your_collection.json" --extract-keys print
110
+
98
111
# Generate a template environment file with all variables
99
112
python postman2burp.py --collection " your_collection.json" --extract-keys " environment_template.json"
100
113
```
101
114
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
+
102
123
### Manual Installation
103
124
104
125
| Step | Command |
@@ -122,7 +143,7 @@ For detailed usage instructions, see the [Wiki](https://github.com/darmado/postm
122
143
| 📊 Logging | Logs request results | Easy troubleshooting and verification |
123
144
| 📋 Postman-Compatible Logs | Generates logs in Postman Collection format | Logs can be imported directly into Postman |
124
145
| 🔍 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 |
126
147
| 🔑 Variable Extraction | Extracts variables from collections | Easily create environment templates or view all variables |
127
148
128
149
## 🎯 Use Cases
0 commit comments