This file contains hidden or 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
| var mongoose = require('mongoose'); | |
| var isSeenConnected = false; | |
| var connect = function() { | |
| var opt = { server: { auto_reconnect: true } }; | |
| mongoose.connect('mongodb://localhost/' + 'test', opt); | |
| }; | |
| connect(); | |
| mongoose.connection.on('error', function() { |
This file contains hidden or 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
| while ( gets( line, line_len, BODY_LEN/*sizeof(line)*/ ) != NULL ) | |
| { | |
| if ( strncmp( line, "Host:", 5 ) == 0 ) | |
| { | |
| strncpy_s(m_strHost, 100, line + 5, sizeof(m_strHost)-1); | |
| } | |
| else if ( strncmp( line, "Connection:", 11 ) == 0 ) | |
| { | |
| if(strstr(line, "Keep-Alive")) |
This file contains hidden or 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
| void ConsumerThread::Run() | |
| { | |
| enum | |
| { | |
| Term_Evt = 0, | |
| MQTimer_Evt, | |
| RpTimer_Evt, | |
| Queue_Evt, | |
| Evt_cnt, |
This file contains hidden or 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
| 'use strict'; | |
| /** | |
| * dependencies | |
| */ | |
| var amqp = require('amqplib'), | |
| when = require('when'); | |
| /** | |
| * Receiver Class, initialized with amqp address |
This file contains hidden or 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
| 'use strict'; | |
| /** | |
| * dependencies | |
| */ | |
| var amqp = require('amqplib'), | |
| when = require('when'); | |
| /** |
This file contains hidden or 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
| 'use strict'; | |
| /** | |
| * dependencies | |
| */ | |
| var amqp = require('amqplib'), | |
| when = require('when'); | |
| /** |
This file contains hidden or 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
| 'use strict'; | |
| /** | |
| * dependencies | |
| */ | |
| var amqp = require('amqplib'), | |
| when = require('when'); | |
| /** |
This file contains hidden or 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
| 'use strict'; | |
| /** | |
| * dependencies | |
| */ | |
| var amqp = require('amqplib'), | |
| when = require('when'); | |
| /** |
This file contains hidden or 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/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
This file contains hidden or 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
| // EDIT: 2013/10/20 | |
| // google has updated its kwt UI, this script doesn't work any more! | |
| // may be I will update this script when I have time to investigate their new Interface. | |
| // requires | |
| var utils = require('utils'); | |
| var casper = require('casper').create() | |
| var casper = require('casper').create({ | |
| verbose: true, |