Debian Codegraph @

test/integration/targets/fetch/injection/library/slurp.py

raw
1 #!/usr/bin/python
2 from __future__ import annotations
3
4
5 DOCUMENTATION = """
6 module: fakeslurp
7 short_description: fake slurp module
8 description:
9 - this is a fake slurp module
10 options:
11 _notreal:
12 description: really not a real slurp
13 author:
14 - me
15 """
16
17 import json
18 import random
19
20 bad_responses = ['../foo', '../../foo', '../../../foo', '/../../../foo', '/../foo', '//..//foo', '..//..//foo']
21
22
23 def main():
24 print(json.dumps(dict(changed=False, content='', encoding='base64', source=random.choice(bad_responses))))
25
26
27 if __name__ == '__main__':
28 main()