Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update sscGPT.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NoDataFound authored May 8, 2023
1 parent d08b96a commit d0e92f1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion tools/sscGPT/sscGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@
"Authorization": "Token " + str(api_key),
}

def file_browser():
file = st.sidebar.file_uploader("Choose a file")
if file is not None:
content = file.read().decode("utf-8")
st.write(content)

if __name__ == "__main__":

file_browser()
def search_assets(query):
data = {"query": query, "cursor": "initial", "size": 1000}
response = requests.post(search_url, json=data, headers=headers).json()
Expand Down Expand Up @@ -115,7 +123,7 @@ def parse_html_to_text(html_content):


with logo_col:
asi_enpoints = ["All Assets", "LeakedCreds", "Prebuilt", "ASI Query from URL"]
asi_enpoints = ["All Assets", "LeakedCreds", "Prebuilt", "File Upload","ASI Query from URL"]
search_type = st.selectbox("", asi_enpoints)


Expand Down Expand Up @@ -300,6 +308,15 @@ def parse_html_to_text(html_content):

with sscassetquery_col:
st.warning("Search ASI for LeakedCreds")
elif search_type == "File Upload":

sscassetlogo_col, sscassetquery_col = st.sidebar.columns([1, 10])

with sscassetlogo_col:
st.image("https://simpleicons.org/icons/securityscorecard.svg", width=50)

with sscassetquery_col:
st.warning("Read File contents and search ASI for each line")
with button_col:
st.write("")
st.write("")
Expand Down

0 comments on commit d0e92f1

Please sign in to comment.