Skip to content

Latest commit

 

History

History
96 lines (70 loc) · 2 KB

README.md

File metadata and controls

96 lines (70 loc) · 2 KB

Vulnerable Server Examples

Warning
本ディレクトリ下のアプリケーションはすべてRCEもしくはそれに近い脆弱性を持つものとなっています。
実際のサービスとしてのご利用にはご注意ください。


各やられサーバの一括起動

docker-compose up

Note

バックエンドをDockerで動かす場合、localhosthost.docker.internalまたはgateway.docker.internalとなります

examples_01

計算機アプリ1

  • Port: 4441
$ nc localhost 4441
----------Calculator----------
<+> 0xff + 0o77 + 0b11
321
<+> ord('A')
65

examples_02

計算機アプリ2

  • Port:4442
$ nc localhost 4442
----------Secure Calculator----------
<SecCalc> 0xff + 0o77 + 0b11
Hi, Hacker !!!
<SecCalc> 7*7
49

examples_03

  • Port: 4443
$ nc localhost 4443
eval_code> print(text)
Let’s roll!!
I don't have the flag.

examples_04

  • Port: 4444
$ nc localhost 4444
+---------------------------------------------------+
| The Answer to the Ultimate Question of Life,      |
|                the Universe, and Everything is 42 |
+---------------------------------------------------+
value 1: {b'6': 6666}
value 2: 1
Traceback (most recent call last):
  File "/PyJailBreak/examples/examples_04/app.py", line 19, in <module>
    if f(x) != 42:
  File "/PyJailBreak/examples/examples_04/app.py", line 11, in f
    return eval(f'{x} * {v}', {}, {})
  File "<string>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'dict' and 'int'

examples_05

挨拶Webアプリ

  • Port:4445
$ curl http://localhost:4445?name=hacker

こんにちはhackerさん。<br>
このサイトは脆弱ですか?<br>