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

fix CSV stdout #303

Merged
merged 1 commit into from
Mar 15, 2024
Merged

fix CSV stdout #303

merged 1 commit into from
Mar 15, 2024

Conversation

dogancanbakir
Copy link
Member

Closes #302

before:

go run . -a AS20001 -c

   ___   _____  __              
  / _ | / __/ |/ /_ _  ___ ____ 
 / __ |_\ \/    /  ' \/ _  / _ \
/_/ |_/___/_/|_/_/_/_/\_,_/ .__/
                         /_/ 

                projectdiscovery.io

[INF] Current asnmap version v1.1.0 (latest)

after:

$ go run . -a AS20001 -c 

   ___   _____  __              
  / _ | / __/ |/ /_ _  ___ ____ 
 / __ |_\ \/    /  ' \/ _  / _ \
/_/ |_/___/_/|_/_/_/_/\_,_/ .__/
                         /_/ 

                projectdiscovery.io

[INF] Current asnmap version v1.1.0 (latest)
timestamp|input|as_number|as_name|as_country|as_range
2024-03-12 20:35:19.489137 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|23.177.64.0/24
2024-03-12 20:35:19.48925 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|23.240.0.0/14
2024-03-12 20:35:19.489258 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.24.128.0/17
2024-03-12 20:35:19.489265 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.25.192.0/18
2024-03-12 20:35:19.489272 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.30.128.0/18
2024-03-12 20:35:19.489277 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.43.0.0/17,24.43.128.0/19,24.43.160.0/20,24.43.176.0/21
2024-03-12 20:35:19.48933 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.43.192.0/19,24.43.224.0/20
2024-03-12 20:35:19.489347 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.43.240.0/21,24.43.248.0/23
2024-03-12 20:35:19.489367 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.43.250.0/23,24.43.252.0/22
2024-03-12 20:35:19.48941 +0300 +03|AS20001|AS20001|twc-20001-pacwest|US|24.94.0.0/19
...

@dogancanbakir dogancanbakir self-assigned this Mar 12, 2024
@dogancanbakir dogancanbakir linked an issue Mar 12, 2024 that may be closed by this pull request
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ PDCP_API_KEY=xxxx go run . -a AS20001 -c

   ___   _____  __              
  / _ | / __/ |/ /_ _  ___ ____ 
 / __ |_\ \/    /  ' \/ _  / _ \
/_/ |_/___/_/|_/_/_/_/\_,_/ .__/
                         /_/ 

                projectdiscovery.io

[INF] Current asnmap version v1.1.0 (latest)
timestamp|input|as_number|as_name|as_country|as_range
2024-03-15 12:03:26.023338 +0100 CET|AS20001|AS20001|twc-20001-pacwest|US|23.177.64.0/24
2024-03-15 12:03:26.023387 +0100 CET|AS20001|AS20001|twc-20001-pacwest|US|23.240.0.0/14
...

@ehsandeep ehsandeep merged commit a2fea6d into dev Mar 15, 2024
4 checks passed
@ehsandeep ehsandeep deleted the fix_csv_stdout branch March 15, 2024 16:32
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

Successfully merging this pull request may close these issues.

output not being writen to stdout with -c -silent
3 participants