T3SF icon indicating copy to clipboard operation
T3SF copied to clipboard

[BUG] - String indices must be integers

Open well-it-wasnt-me opened this issue 1 year ago • 0 comments

Describe the bug Followed the tutorial to a T. This link

To Reproduce Steps to reproduce the behavior:

  1. created file name "demo.py"
  2. Copy paste the content as referred in the doc (and wrote at the end of this report)
  3. open http://127.0.0.1:5000/
  4. Click on "Create Environment"
  5. Die with a 500 server error
  6. The terminal show "TypeError: string indices must be integers"

Expected behavior To not have a 500 server error when clicking on Create Environment

Screenshots Image Screenshot from 2023-12-18 12:40:24

Environment (please complete the following information):

  • OS: Linux
  • Platform slack
  • Version 2.5.1 OCt 30, 2023 (installed via pip)

Additional context demo.py

from T3SF import T3SF
import asyncio

async def main():
        await T3SF.start(MSEL="MSEL.json", platform="Slack", gui=True)

if __name__ == '__main__':
        asyncio.run(main())

MSEL.json

{
    "#": 1,
    "Real Time": "07:30 PM",
    "Date": "Monday  9:40 AM",
    "Subject": "[URGENT] Ransom Request!",
    "From": "SOC - BASE4",
    "Player": "Legal",
    "Script": "Team, we received a ransom request. What should we do?",
    "Picture Name": "Base_4_SOC.jpg",
    "Photo": "https://img2.helpnetsecurity.com/posts2018/aws-s3-buckets-public.jpg",
    "Profile": "https://foreseeti.com/wp-content/uploads/2021/09/Ska%CC%88rmavbild-2021-09-02-kl.-15.44.24.png",
    "Poll": "We are checking on it | It is a false positive"
 }

.env

SLACK_APP_TOKEN=xapp-1-----REDACTED------
SLACK_BOT_TOKEN=xoxb------REDACTED------

logs.txt

data: {"id": "8af11dc1-db6e-4753-ba5c-8d139b70b388", "type": "DEBUG", "content": "Starting GUI", "timestamp": "12:36:32"}

data: {"id": "b3133a11-a6b6-4254-ac11-7ae2c14a68c2", "type": "DEBUG", "content": "Starting BOT", "timestamp": "12:36:32"}

data: {"id": "6ff171b5-210d-4c9e-96e0-f27f2dbda736", "type": "DEBUG", "content": "Slack Bot is ready!", "timestamp": "12:36:32"}

data: {"id": "1dc2a037-5818-42f9-8e25-b939a30520e0", "type": "DEBUG", "content": "Reading MSEL", "timestamp": "12:36:49"}

well-it-wasnt-me avatar Dec 18 '23 11:12 well-it-wasnt-me