Created
October 8, 2015 08:34
-
-
Save qzwpq/ffe37b7b315f8b9a64b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/node --harmony | |
const data = { | |
username: '12X34567', | |
password: 'abcde12345' | |
}; | |
const address = [ | |
'https://', | |
'\x77\x6C\x61\x6E\x61\x75\x74\x68\x2E\x6E\x6F\x63\x2E\x74\x69\x74\x65\x63\x68\x2E\x61\x63\x2E\x6A\x70\x2F\x6C\x6F\x67\x69\x6E', | |
'.html' | |
].join(''); | |
const Nightmare = require('nightmare'); | |
const fuck = function* () { | |
yield Nightmare() | |
.goto(address) | |
.type('input[name="username"]', data.username) | |
.type('input[name="password"]', data.password) | |
.click('input.button') | |
.run(); | |
}; | |
fuck().next(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
エラーは無視してOK