masscan-web-ui icon indicating copy to clipboard operation
masscan-web-ui copied to clipboard

There is a problem with this xml file?!

Open SaiGonSeamus opened this issue 7 years ago • 2 comments

Hi, Tried loading a 2.5GB xml file and got this error.

Do you want to clear the database before importing (yes/no)?: yes

Clearing the db
Reading file
Parsing file
There is a problem with this xml file?!

SaiGonSeamus avatar May 01 '17 17:05 SaiGonSeamus

Similar problem File size => 400Mb PHP 7.0

libxml_use_internal_errors(true); $errors = libxml_get_errors(); echo 'Errors are '.var_export($errors, true);

Errors are array ( 0 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 6, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '/home/masscan/bin/scan-02.xml', 'line' => 250, )), 1 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 5, 'column' => 1, 'message' => 'Extra content at the end of the document ', 'file' => '/home/masscan/bin/scan-02.xml', 'line' => 253, )), xml file

4val0v avatar Aug 25 '17 13:08 4val0v

out of curiosity how many ip's are in your scan? i have successfully imported 738279 hosts with php5 installed. It looks to be an error with php7 if you remove everything from "runstats" to "<scaninfo" it should import fine.

vxnuke avatar Jul 24 '18 13:07 vxnuke