offensive-security/masscan-web-ui

Add ICMP protocol

eduard-haritonov opened this issue · 1 comments

If "masscan" utility is run with "--ping" options, then import.php will fail with the follwing error:

Fatal error: Uncaught PDOException: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'protocol' at row 1 in /var/www/html/import.php:137
Stack trace:
#0 /var/www/html/import.php(137): PDOStatement->execute()
#1 {main}
  thrown in /var/www/html/import.php on line 137

Please add the changes from attached diff file to resolve the issue.
masscan-web-ui.diff.gz

pawco commented

Thanks for the heads up and even more thanks for providing solution.
I'll update code quickly.