pancho horrillo
b1d0e9c92f
doc: use valid language in code-blocks
...
See ¹ for the valid values.
¹: https://www.sphinx-doc.org/en/1.5/markup/code.html#directive-code-block
2019-12-11 03:23:56 +01:00
pancho horrillo
3af5def406
poc: make error_body(reason) return a JSON with extraneous fields
...
We then ensure that the cucumber steps only test the
presence of the required fields, not just comparing it byte-wise.
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-11-14 17:40:47 +01:00
Héctor Hurtado
ee9bb8df9c
New error handling in poc and features
2019-11-14 15:05:19 +01:00
pancho horrillo
9ebc989bc7
poc/Makefile: add 'fix' target (mirroring spec/Makefile)
2019-11-14 17:53:32 +01:00
Roberto Abdelkader Martínez Pérez
19bc0df968
Old poc examples were full of injections due to migration strategy. Will be rewritten in doc.
2019-11-12 13:16:30 +01:00
Roberto Abdelkader Martínez Pérez
049081c8b0
Update topdf
2019-11-12 13:06:31 +01:00
Roberto Abdelkader Martínez Pérez
1566dcf30f
Sanitize input
2019-11-12 13:05:25 +01:00
Roberto Abdelkader Martínez Pérez
653fc3eb32
Escape input
2019-11-12 13:04:29 +01:00
pancho horrillo
6194c6961a
Tweak PoC to pass current test suite
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-11-11 17:47:28 +01:00
pancho horrillo
3dd038e0aa
Revert nmap examples, they need more work
...
Closes : #65
2019-10-28 16:46:02 +01:00
pancho horrillo
00770650a8
Rename nmap example to nmap-web
...
* Drop unused CSS section
2019-10-25 19:21:04 +02:00
pancho horrillo
56876335b7
Add yet another Nmap example, ideal to be consumed by browser
...
I intend to replace the nmap-streaming.pow example with this one.
I've realized that nmap-streaming.pow is not actually a streaming example,
since Nmap won't write its output(s) until scan is finished, and hence, kapow
will serve them in one shot.
Check it out, @nilp0inter, @cr0hn.
2019-10-25 08:14:38 +02:00
pancho horrillo
2fc18b76e3
poc/examples/nmap-{streaming,callback}.pow: minor cleanup
...
* Update comments.
* Add Content-Type: text/xml header (nmap-streaming.pow) only.
* Wrap the Nmap output in XML comment delimiters, *after* the XML header.
* Write to /response/body (preferred) instead of /response/stream (legacy).
* Use suffix .xml for temp files.
* Move possibly noise-generating calls outside of the block
that is sent to the /request/body.
2019-10-24 17:05:54 +02:00
pancho horrillo
d2c3138036
Give nmap examples some lovin'.
...
* Add legal headers.
* Add default values for params and forms.
* Cleanup code a bit.
* Wrap nmap output in XML comments; not legal, but perhaps better than the alternative.
2019-10-24 07:27:20 +02:00
cr0hn
73308cebeb
Add - 2 new examples using nmap ( #61 )
...
add - two examples using nmap
2019-10-23 18:56:01 +02:00
pancho horrillo
6154210b3f
Update PoC and features with the 204 -> 404 update
...
Closes #33
2019-10-04 17:24:27 +02:00
pancho horrillo
27cf52467d
poc: Drop unused import
2019-09-16 10:24:11 +02:00
Roberto Abdelkader Martínez Pérez
b7f61aeb63
kapow get streams reponse
2019-09-13 11:18:21 +02:00
pancho horrillo
479e3cb13b
Fix markdown and add missing -E param to sudo.
2019-09-06 13:54:43 +02:00
pancho horrillo
b577dd93d3
Fix usage of sudo to prevent issues with the environment.
...
Also fix a couple of typos.
2019-09-06 13:48:51 +02:00
Roberto Abdelkader Martínez Pérez
9c1b9b5bca
Proper code box
2019-09-06 13:22:47 +02:00
Roberto Abdelkader Martínez Pérez
65fa968308
Better explanation
2019-09-06 13:21:00 +02:00
Roberto Abdelkader Martínez Pérez
ae465434ce
Variable name instead of network interface
2019-09-06 13:16:53 +02:00
Roberto Abdelkader Martínez Pérez
04014e1254
Remote tcpdump demo
2019-09-06 13:11:52 +02:00
Roberto Abdelkader Martínez Pérez
d3e719af66
Add some help to the commands
2019-09-06 11:35:35 +02:00
Roberto Abdelkader Martínez Pérez
58a800e5e9
Replace request/response with new commands
2019-09-05 08:40:59 +02:00
Roberto Abdelkader Martínez Pérez
f6ce9935a5
Adapt bin/static to new binary structure
2019-09-05 08:32:34 +02:00
Roberto Abdelkader Martínez Pérez
6c65064e12
Change custom request & response commands by two kapow subcommands
2019-09-05 07:55:55 +02:00
Roberto Abdelkader Martínez Pérez
07b6ce9b01
Move dev package installation to pipenv dev packages
2019-09-05 07:24:20 +02:00
Roberto Abdelkader Martínez Pérez
4db40d2b87
Arrr
2019-09-03 11:18:35 +02:00
Roberto Abdelkader Martínez Pérez
dfbbd56ecf
buildme script not used anymore
2019-09-03 08:43:37 +02:00
Roberto Abdelkader Martínez Pérez
0535f66c85
Implement Resource Item Not Found
2019-08-30 12:40:20 +02:00
Roberto Abdelkader Martínez Pérez
c9a9e90a7e
Fix Invalid Path Resource error
2019-08-30 12:33:29 +02:00
Roberto Abdelkader Martínez Pérez
ed00f2c3d7
Introduce defaults again
2019-08-29 16:28:10 +02:00
Héctor Hurtado
48ab14d49d
Modified some steps in data/handler features and added data/handler/error_itemnotfound feature
2019-08-29 14:14:04 +02:00
Roberto Abdelkader Martínez Pérez
ceb41d4f7d
Update README.rst
2019-08-26 11:49:29 +02:00
Roberto Abdelkader Martínez Pérez
6de3ca9ebe
Instructions about running spec tests.
2019-08-26 11:48:21 +02:00
Roberto Abdelkader Martínez Pérez
6b0ff05010
Implement get route details. Closes #12
2019-08-23 15:18:54 +02:00
Roberto Abdelkader Martínez Pérez
8752f419b5
Implementing 204 on delete and removing unnecessary steps
2019-08-23 12:01:51 +02:00
Roberto Abdelkader Martínez Pérez
71bca13fed
Cosmetic changes to kapow route commands output and new 'kapow route list' subcommand
2019-08-22 10:51:30 +02:00
Roberto Abdelkader Martínez Pérez
80dc654115
Minor fixes to steps and compliant poc control API
2019-08-22 09:27:53 +02:00
Roberto Abdelkader Martínez Pérez
483056ea16
Clarification about aiohttp unsafe usage in PoC
2019-08-21 13:11:49 +02:00
Roberto Abdelkader Martínez Pérez
c96584efcc
Return route information on insert & append
2019-08-21 12:20:11 +02:00
Roberto Abdelkader Martínez Pérez
50262c599d
Implemented insert route in PoC.
2019-08-21 11:23:25 +02:00
Roberto Abdelkader Martínez Pérez
443aa0f39c
Use 201 for successfule route append response.
2019-08-21 09:08:22 +02:00
Roberto Abdelkader Martínez Pérez
7a93c16dec
Implement JSON validation in append.
2019-08-21 08:52:13 +02:00
Roberto Abdelkader Martínez Pérez
c07638601b
Implementing poc spec behavior in append route.
2019-08-20 10:59:39 +02:00
Roberto Abdelkader Martínez Pérez
7c5f127f22
If no interactive without scripts is not interactive.
2019-08-20 10:29:30 +02:00
Roberto Abdelkader Martínez Pérez
e4771de5ed
Implement non-interactive mode. Add -i/--interactive flag.
2019-08-16 17:19:19 +02:00
Roberto Abdelkader Martínez Pérez
292acac8ab
Inserting an empty line between .pow files when loading multiple at a time. Closes #6 .
2019-08-02 10:34:27 +02:00