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

MySQL Integrations Tests Fail #50

Closed
jordan-wright opened this issue Jan 31, 2018 · 1 comment
Closed

MySQL Integrations Tests Fail #50

jordan-wright opened this issue Jan 31, 2018 · 1 comment

Comments

@jordan-wright
Copy link

I'm unable to get the MySQL integration tests to pass (maybe more than MySQL? Not sure) on a clean build.

Steps to Reproduce

  • go get the zmap/zgrab2 package
  • Run make integration-test

Debug Log

cd cmd/zgrab2 && go build && cd ../..
rm -f zgrab2
ln -s cmd/zgrab2/zgrab2 zgrab2
make -C docker-runner
docker build -t zgrab2_runner:latest -f Dockerfile -q .. > docker-runner.id || rm -f docker-runner.id
rm -rf zgrab-output
./integration_tests/test.sh
~/src/go/src/github.com/zmap/zgrab2/integration_tests ~/src/go/src/github.com/zmap/zgrab2
~/src/go/src/github.com/zmap/zgrab2/integration_tests/ftp ~/src/go/src/github.com/zmap/zgrab2/integration_tests ~/src/go/src/github.com/zmap/zgrab2
Running integration_tests/ftp/test.sh
ftp/test: Testing FTP with --authtls on zgrab_ftp...
+ echo target
+ /go/src/github.com/zmap/zgrab2/cmd/zgrab2/zgrab2 ftp --authtls
time="2018-01-31T05:54:56Z" level=info msg="started grab at 2018-01-31T05:54:56Z"
time="2018-01-31T05:54:57Z" level=info msg="finished grab at 2018-01-31T05:54:57Z"
{"statuses":{"ftp":{"successes":1,"failures":0}},"start":"2018-01-31T05:54:56Z","end":"2018-01-31T05:54:57Z","duration":"245.507085ms"}
ftp/test: Testing FTP on zgrab_ftp...
+ echo target
+ /go/src/github.com/zmap/zgrab2/cmd/zgrab2/zgrab2 ftp
time="2018-01-31T05:54:58Z" level=info msg="started grab at 2018-01-31T05:54:58Z"
time="2018-01-31T05:54:58Z" level=info msg="finished grab at 2018-01-31T05:54:58Z"
{"statuses":{"ftp":{"successes":1,"failures":0}},"start":"2018-01-31T05:54:58Z","end":"2018-01-31T05:54:58Z","duration":"11.024085ms"}
ftp/test: BEGIN vsftpd logs from zgrab_ftp [{(
Wed Jan 31 05:35:44 2018 [pid 9] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:35:44 2018 [pid 9] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:35:44 2018 [pid 9] FTP command: Client "::ffff:172.17.0.18", "AUTH TLS"
Wed Jan 31 05:35:44 2018 [pid 9] FTP response: Client "::ffff:172.17.0.18", "234 Proceed with negotiation."
Wed Jan 31 05:35:44 2018 [pid 9] DEBUG: Client "::ffff:172.17.0.18", "Control connection terminated without SSL shutdown."
Wed Jan 31 05:35:45 2018 [pid 11] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:35:45 2018 [pid 11] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:37:12 2018 [pid 19] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:37:12 2018 [pid 19] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:37:12 2018 [pid 19] FTP command: Client "::ffff:172.17.0.18", "AUTH TLS"
Wed Jan 31 05:37:12 2018 [pid 19] FTP response: Client "::ffff:172.17.0.18", "234 Proceed with negotiation."
Wed Jan 31 05:37:12 2018 [pid 19] DEBUG: Client "::ffff:172.17.0.18", "Control connection terminated without SSL shutdown."
Wed Jan 31 05:37:13 2018 [pid 21] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:37:13 2018 [pid 21] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:37:28 2018 [pid 29] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:37:28 2018 [pid 29] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:37:28 2018 [pid 29] FTP command: Client "::ffff:172.17.0.18", "AUTH TLS"
Wed Jan 31 05:37:28 2018 [pid 29] FTP response: Client "::ffff:172.17.0.18", "234 Proceed with negotiation."
Wed Jan 31 05:37:28 2018 [pid 29] DEBUG: Client "::ffff:172.17.0.18", "Control connection terminated without SSL shutdown."
Wed Jan 31 05:37:30 2018 [pid 31] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:37:30 2018 [pid 31] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:54:56 2018 [pid 39] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:54:56 2018 [pid 39] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
Wed Jan 31 05:54:56 2018 [pid 39] FTP command: Client "::ffff:172.17.0.18", "AUTH TLS"
Wed Jan 31 05:54:56 2018 [pid 39] FTP response: Client "::ffff:172.17.0.18", "234 Proceed with negotiation."
Wed Jan 31 05:54:57 2018 [pid 39] DEBUG: Client "::ffff:172.17.0.18", "Control connection terminated without SSL shutdown."
Wed Jan 31 05:54:58 2018 [pid 41] CONNECT: Client "::ffff:172.17.0.18"
Wed Jan 31 05:54:58 2018 [pid 41] FTP response: Client "::ffff:172.17.0.18", "220 (vsFTPd 3.0.3)"
)}] END vsftpd logs from zgrab_ftp
ftp/test: BEGIN docker logs from zgrab_ftp [{(
+ true
+ /usr/sbin/vsftpd
)}] END docker logs from zgrab_ftp
~/src/go/src/github.com/zmap/zgrab2/integration_tests ~/src/go/src/github.com/zmap/zgrab2
~/src/go/src/github.com/zmap/zgrab2/integration_tests/mysql ~/src/go/src/github.com/zmap/zgrab2/integration_tests ~/src/go/src/github.com/zmap/zgrab2
Running integration_tests/mysql/test.sh
mysql/test: Testing MySQL Version 5.5...
+ echo target
+ /go/src/github.com/zmap/zgrab2/cmd/zgrab2/zgrab2 mysql --timeout 10
time="2018-01-31T05:55:00Z" level=info msg="started grab at 2018-01-31T05:55:00Z"
time="2018-01-31T05:55:00Z" level=info msg="finished grab at 2018-01-31T05:55:00Z"
{"statuses":{"mysql":{"successes":1,"failures":0}},"start":"2018-01-31T05:55:00Z","end":"2018-01-31T05:55:00Z","duration":"8.047874ms"}
./test.sh: line 23: ./../../jp: No such file or directory
make: *** [integration-test] Error 127

I thought that maybe I was missing the jp directory/file but a mkdir or a touch didn't affect the test outcome. I'm running the tests from the root zgrab2 directory.

Environment

MacOS High Sierra version 10.13.3 (17D47)
Branch: master
Docker version 18.01.0-ce, build 03596f5

@jordan-wright
Copy link
Author

Oh wait, I figured it out by digging through the recent Travis build logs - I'll draft up some README additions to describe the testing process. Sorry for the false alarm! 😳

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

No branches or pull requests

1 participant