aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | Options tweaksAldo Cortesi2017-03-071-17/+17
| | | | | | | | | | | | | | - Regularise presentation and wording - Help is mandatory for all options - Auto-generate wording to say that sequence options can be passed multiple times on the command-line
* | Remove less commonly used command-line optionsAldo Cortesi2017-03-071-24/+0
| | | | | | | | | | | | We now have --set, so only options that really deserve it get a dedicated flag. I'm inclined to strip this back even more. Feel free to argue that YOUR favourite option deserves special treatment here.
* | Add the --set option to set options directlyAldo Cortesi2017-03-071-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The --set option is a universal flag for setting options. Some examples: Turn on a boolean: mitmdump --set onboarding=false Add a value to a sequence: mitumdupm --set setheaders=/foo/bar/voing Zero a sequence: mitumdupm --set setheaders
* | Option spacing and coverageAldo Cortesi2017-03-071-1/+23
| |
* | Add --options that dumps annotated option defaultsAldo Cortesi2017-03-071-0/+5
| |
* | Cleanups and test coverageAldo Cortesi2017-03-073-4/+34
| |
* | Automate slurping up command-line optionsAldo Cortesi2017-03-072-9/+4
| | | | | | | | | | Now that options are completely regular, we can automate reading them out of arguments, rather than listing them out by hand like savages.
* | Replacements and setheaders are always stringsAldo Cortesi2017-03-062-19/+19
| | | | | | | | | | Instead of having two representations we have one canonical specification. Fixing the editor in console is left ot a further patch.
* | Unify mode specificationAldo Cortesi2017-03-065-40/+30
| | | | | | | | | | | | | | | | | | | | | | | | We now have: --mode regular (the default) --mode transparent --mode socks5 --mode reverse:SPEC --mode upstream:SPEC Where SPEC is a host specification.
* | Options unification: streamfileAldo Cortesi2017-03-061-1/+1
| | | | | | | | | | We now have one option to control this. If the path is prefixed with a "+" we append, otherwise we overwrite.
* | Options unification: string choicesAldo Cortesi2017-03-061-3/+3
| |
* | Options unification: simple stringsAldo Cortesi2017-03-063-8/+8
| | | | | | | | Move all simple string options to the new scheme. Also regularise some names.
* | Options unification: sizesAldo Cortesi2017-03-063-3/+20
| | | | | | | | | | | | | | | | | | | | | | Start dealing with corner cases: - Sizes are always stored in options as strings - Add a new core addon that's responsible for verifying settings that don't belong to an addon - Add a _processed scratch space on the Options object for processed core values to be stored in. This is pretty dirty, but less dirty than re-parsing values every time. We'll come up with something better down the track.
* | Start unifying options and the command-line: booleansAldo Cortesi2017-03-056-19/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit: - Adds a help field to options - Adds a function to generate parser definitions from options - Uses this to migrate all boolean flags over to the new system - Makes all booleans consistently follow the --foo/--not-foo convention There are a number of things left to be done here: - Argparse doesn't give us a nice way to format --foo --not-foo help. Click does, and moving to click is a goal down the track. - For now, we remove all short aliases. I want to re-evaluate these systematically once we have the new structure in place.
* | Revamp optionsAldo Cortesi2017-03-059-104/+90
|/ | | | | - Options are now explicitly initialized with an add_option method - We have one canonical Options class - ditch dump.Options
* Merge branch 'master' into on-issuesNikhil Soni2017-03-0318-421/+1022
|\
| * http2: fix h2 header normalization test (#2080)Thomas Kriechbaumer2017-03-011-69/+0
| |
| * added XSS scanner example (#1907)David Dworken2017-02-271-0/+368
| |
| * do not return IP addresses in SSLCert.altnamesThomas Kriechbaumer2017-02-261-1/+1
| |
| * certs: coverage++Thomas Kriechbaumer2017-02-262-7/+26
| |
| * connections: coverage++ (#2064)Thomas Kriechbaumer2017-02-261-28/+171
| |
| * optmanager: coverage++ (#2062)Thomas Kriechbaumer2017-02-251-7/+15
| |
| * http: coverage++ (#2060)Thomas Kriechbaumer2017-02-241-0/+25
| |
| * move tests around (#2059)Thomas Kriechbaumer2017-02-242-225/+232
| |
| * move tests around (#2058)Thomas Kriechbaumer2017-02-243-67/+68
| |
| * flowfilter: coverage++Thomas Kriechbaumer2017-02-243-1/+102
| |
| * nuke tcp.Address and add proper IPv6 supportThomas Kriechbaumer2017-02-2411-47/+44
| |
| * Merge pull request #2048 from ujjwal96/ipv6-addressesMaximilian Hils2017-02-221-0/+1
| |\ | | | | | | Absolute IPv6 addresses supported
| | * Absolute IPv6 addresses supportedUjjwal Verma2017-02-201-0/+1
| | |
* | | Adds test for --keep-host-headerNikhil Soni2017-03-031-0/+20
| | |
* | | Changes dns_spoofing example to use --keep-host-headerNikhil Soni2017-03-031-2/+0
|/ /
* / Add test for @concurrent decorator in class.Matthew Shao2017-02-212-0/+31
|/
* improve testThomas Kriechbaumer2017-02-201-3/+3
|
* Merge pull request #2017 from lymanZerga11/patch-1Thomas Kriechbaumer2017-02-201-0/+21
|\ | | | | Catch ValueErrors from url.parse()
| * Update test_flowlist.pylymanZerga112017-02-141-4/+3
| |
| * Update test_flowlist.pylymanZerga112017-02-141-13/+4
| |
| * Update test_flowlist.pylymanZerga112017-02-131-4/+5
| |
| * Update test_flowlist.pylymanZerga112017-02-131-1/+0
| |
| * Update test_flowlist.pylymanZerga112017-02-131-3/+3
| |
| * Update test_flowlist.pylymanZerga112017-02-121-2/+2
| |
| * Update test_flowlist.pylymanZerga112017-02-121-7/+5
| |
| * Create test_flowlist.pylymanZerga112017-02-121-0/+33
| |
* | improve testsThomas Kriechbaumer2017-02-201-3/+8
| |
* | Merge pull request #2041 from krsoninikhil/debugThomas Kriechbaumer2017-02-201-0/+2
|\ \ | | | | | | Adds PyInstaller build indicator to --version argument
| * | Adds test for pyinstaller indicatorNikhil Soni2017-02-191-0/+2
| | |
* | | protobuf: coverage++Thomas Kriechbaumer2017-02-191-7/+45
| | |
* | | http2: disable priority forwardingThomas Kriechbaumer2017-02-181-127/+36
| | |
* | | Merge pull request #2040 from mhils/request-host-headerMaximilian Hils2017-02-181-1/+46
|\ \ \ | | | | | | | | Add "Request.host_header"
| * | | add request.host_header, fix #2036Maximilian Hils2017-02-171-1/+46
| | | |
* | | | Merge pull request #2038 from Kriechi/improve-http2-covThomas Kriechbaumer2017-02-181-0/+69
|\ \ \ \ | |/ / / |/| | | test forbidden HTTP/2 headers in reponses