masscan-web-ui
masscan-web-ui copied to clipboard
There is a problem with this xml file?!
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?!
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, )),
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.