Commit Graph

34 Commits

Author SHA1 Message Date
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
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
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
6c65064e12 Change custom request & response commands by two kapow subcommands 2019-09-05 07:55:55 +02:00
pancho horrillo
9d1937ebbf poc/examples/nmap/Dockerfile: make use of published docker image @ hub.docker.com 2019-07-01 15:37:47 +02:00
pancho horrillo
b058136eb2 poc/examples/pdfeditor/pdfeditor.pow: remove trailing whitespace 2019-06-27 10:12:08 +02:00
pancho horrillo
4244ceba24 poc/examples/nmap/Dockerfile: revert version bump in base image 2019-06-19 11:48:57 +02:00
pancho horrillo
04715abbe1 poc/examples/nmap/Dockerfile: tidy it a little bit 2019-06-18 15:50:24 +02:00
Roberto Abdelkader Martínez Pérez
b10765f623 Merge remote-tracking branch 'origin/develop' into server-as-subcommand 2019-06-05 10:19:43 +02:00
Roberto Abdelkader Martínez Pérez
96739189f1 Making PoC follow spec regarding to the "kapow route" command and, incidentally creating a new "kapow server" command. 2019-06-04 14:40:01 +02:00
pancho horrillo
123d88fc5d poc: fix executable permissions to .pow scripts 2019-05-28 15:42:02 +02:00
pancho horrillo
f091f3c566 poc: add tester to eval example 2019-05-28 15:41:59 +02:00
pancho horrillo
0938fc225e poc: add tester for pandoc example
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-05-28 15:41:57 +02:00
pancho horrillo
dc253f7485 Sync poc to spec
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-05-28 15:41:54 +02:00
pancho horrillo
8acf8fa4b4 Use GET instead of POST in nmap example 2019-05-13 11:48:42 +02:00
pancho horrillo
b5d16c448d Put nmap example into its own dir and add Dockerfile 2019-05-10 16:25:00 +02:00
Roberto Abdelkader Martínez Pérez
b0566e14a1 Remaining examples. 2019-04-29 15:35:29 +02:00
Roberto Abdelkader Martínez Pérez
503855c53b pandoc and pdfeditor examples. 2019-04-29 15:29:12 +02:00
Roberto Abdelkader Martínez Pérez
503ac70963 Reimplementation of 'operator' example. 2019-04-29 11:53:39 +02:00
pancho horrillo
58b0f50282 Add legal headers, as per the Apache 2 License instructions
APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   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.
2019-04-26 17:01:29 +02:00
Roberto Abdelkader Martínez Pérez
7f120a87e7 Fixing poc. 2019-04-26 08:38:32 +02:00
Roberto Abdelkader Martínez Pérez
969a2522c4 PoC code in poc directory. 2019-04-26 07:49:35 +02:00