Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage question: Do I need to submit my files using vt-cli (official) first? #6

Open
averyfreeman opened this issue Aug 12, 2024 · 0 comments

Comments

@averyfreeman
Copy link

averyfreeman commented Aug 12, 2024

Hi,

Thanks for the project - I got a response from the two file scanning features I think might be user error, so I wanted to ask if I need to submit all my files to VT prior to scanning them?

Here's the output; known cracked file used as test

❯ ./vt-cli.py -anf $DOWNLOADS/sublime_text.binary.cracked

[logo omitted]

[-] expected a [SHA-256, SHA-1 or MD5] hash, something went wrong please try again.

Exiting due to a wrong file hash type.
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x70d137786270>, 68404.990304331)]']
connector: <aiohttp.connector.TCPConnector object at 0x70d1377ffd10>

other option:

./vt-cli.py -scanf $DOWNLOADS/sublime_text.binary.cracked

[logo omitted]

Traceback (most recent call last):
  File "/home/avery/build/VT-CLI/./vt-cli.py", line 241, in <module>
    main()
  File "/home/avery/build/VT-CLI/./vt-cli.py", line 197, in main
    file_scanner(path=args.file_scan, client=client)
  File "/home/avery/build/VT-CLI/./vt-cli.py", line 163, in file_scanner
    hash_obj = client.get_object("/files/{}", hash)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avery/build/VT-CLI/.venv/lib/python3.11/site-packages/vt/client.py", line 642, in get_object
    return make_sync(self.get_object_async(path, *path_args, params=params))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avery/build/VT-CLI/.venv/lib/python3.11/site-packages/vt/utils.py", line 27, in make_sync
    return event_loop.run_until_complete(future)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avery/.rye/py/[email protected]/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/avery/build/VT-CLI/.venv/lib/python3.11/site-packages/vt/client.py", line 652, in get_object_async
    return await self._response_to_object(response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avery/build/VT-CLI/.venv/lib/python3.11/site-packages/vt/client.py", line 310, in _response_to_object
    json_response = await self._response_to_json(response)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/avery/build/VT-CLI/.venv/lib/python3.11/site-packages/vt/client.py", line 306, in _response_to_json
    raise error
vt.error.APIError: ('NotFoundError', 'File "02c867f3bc45fcb044326f1eb1eb7094" not found')
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x772fb4b74a90>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x772fb4cfee40>, 68414.727696059)]']
connector: <aiohttp.connector.TCPConnector object at 0x772fb4b0fed0>

Thanks

edit: forgot to include the version of python I'm using:

python -V
Python 3.11.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant