Docs GitHub
-- --
Theme:
Language:
EN فا

Result Files#

After a scan completes, bgscan writes the discovered IPs and their measurements to result files. These files are organized by created time and can be browsed, viewed, renamed, or deleted from the TUI.


Viewing Result Files#

Navigate to Main Menu → Result Files to open the result file browser.

The table lists every result file across all scan types, sorted newest-first, and shows:

ColumnDescription
File NameThe result file name (without .csv)
Created TimeFile creation or last modification timestamp
TypeThe scan engine that produced the file (icmp, tcp, http, etc.)
SizeFile size on disk

Two keyboard actions are available:

KeyAction
rRename the selected file
xDelete the selected file permanently
bgscan result file

Opening a result file#

Press Enter on any file to open the IP viewer, which displays the IPs found in that file along with their measured latency, download, and upload values. Xray results show full download and upload measurements; all other scan types show a short view with latency only.


Storage Location#

Result files are stored under the result/ directory next to the bgscan binary, in a subdirectory per scan type:

<bgscan-root>/
└── result/
    ├── icmp/
    ├── tcp/
    ├── http/
    ├── xray/
    ├── resolve/
    ├── dnstt/
    └── slipstream/

Each directory holds .csv files produced by its corresponding scan engine. Files are created automatically when a scan runs — you do not need to create these directories manually.


File Naming#

Result files are named using the scan engine’s configured prefix followed by a timestamp:

<prefix><YYYYMMDD_HHMMSS>.csv

Each scan type has a default prefix set in its configuration:

Scan TypeDefault PrefixExample Filename
ICMPicmp_icmp_20240711_143022.csv
TCPtcp_tcp_20240711_143022.csv
HTTPhttp_http_20240711_143022.csv
Xrayxray_xray_20240711_143022.csv
DNS Resolverdns_resolver_dns_resolver_20240711_143022.csv
DNSTTdns_dnstt_dns_dnstt_20240711_143022.csv
SlipStreamdns_slipstream_dns_slipstream_20240711_143022.csv

You can change the prefix for any scan type in its settings file under settings/. See Configuration for details.


File Format#

Result files are plain CSV with no header row. Each row represents one responsive IP:

<ip>,<latency>,<download>,<upload>
FieldDescription
ipThe IPv4 address that responded
latencyRound-trip or connection latency (e.g. 123ms)
downloadDownload measurement — 0s when not measured
uploadUpload measurement — 0s when not measured

Example#

1.2.3.4,45ms,0s,0s
5.6.7.8,120ms,320ms,80ms

For scan types that do not measure speed (ICMP, TCP, HTTP, DNS), the download and upload columns are present but set to 0s.


Result Ordering#

IPs within a result file are sorted by a quality score — higher is better. The score is calculated from all three measurements:

  • 60% download speed
  • 20% upload speed
  • 20% latency

This means the best IPs (fastest download, lowest latency) appear at the top of the file. When two IPs have the same score, they are sorted alphabetically by IP address as a tie-breaker.