8000 Fixed Missing Working Directories · klezVirus/vortex@432c28f · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Fixed Missing Working Directories
Browse files Browse the repository at this point in the history
  • Loading branch information
klezVirus committed Dec 28, 2021
1 parent f4c271c commit 432c28f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import configparser
import os
from pathlib import Path

import requests
from colorama import Fore
Expand All @@ -14,9 +15,13 @@ class Manager:
def __init__(self):
self.config = configparser.ConfigParser(allow_no_value=True, interpolation=configparser.ExtendedInterpolation())
self.config.read(get_project_root().joinpath("config", "config.ini"))
workspaces = get_project_root().joinpath("data", "workspaces")
temp = get_project_root().joinpath("data", "temp")
workspaces.mkdir(exist_ok=True)
temp.mkdir(exist_ok=True)

def run(self, _action, _workspace, **kwargs):
kwargs["config"] = get_project_root().joinpath("config", "zzz_doosan/config.ini")
kwargs["config"] = get_project_root().joinpath("config", "config.ini")
action_class = Action.from_name(_action)
if not action_class:
error(f"Unknown action: {_action}")
Expand Down
4 changes: 2 additions & 2 deletions scripts/sn0int-to-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

leaks = []
leak = {}
with open("../zzz_doosan/leaked.txt") as infile:
with open("../leaked.txt") as infile:
uid = None
mail = None
creds = []
Expand All @@ -18,5 +18,5 @@
cred = line.split(" ")[1].replace("\"", "").replace("\n", "").strip(" ()")
creds.append(cred)

with open("../zzz_doosan/leaked.json", "w") as outfile:
with open("../leaked.json", "w") as outfile:
json.dump(leaks, outfile)

0 comments on commit 432c28f

Please sign in to comment.
0