dionaea-mysql.py.diff (base64)

IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyMjIyMjCiMgVW5pZmllZCBkaWZmIChwYXRjaCBmaWxlKSB0byBtb2RpZnkgRGlvbmFl
YSdzIG15c3FsLnB5IG1vZHVsZSAgICAgIwojIHRvIGVuYWJsZSBpdCB0byBjYXB0dXJlIGJpbmFy
aWVzIGZyb20gdGhlIGNuYTEyIE15U1FMIGF0dGFja3MgICAgICMKIyAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjCiMgQXBw
bGljYXRpb24gaW5zdHJ1Y3Rpb25zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIwojICAgW2Zyb20gRGlvbmFlYSdzIHRvcCBsZXZlbCBzb3VyY2UgZGlyZWN0b3J5XSAg
ICAgICAgICAgICAgICAgICAgICMKIyAgIGNkIC4vbW9kdWxlcy9weXRob24vc2NyaXB0cy9teXNx
bCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjCiMgICBwYXRjaCA8IGRpb25hZWEtbXlz
cWwucHkuZGlmZiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwojICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICMKIyBkaW9uYWVhLW15c3FsLnB5LmRpZmYgdjIwMTMuMDQuMTYgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAjCiMgaHR0cDovL21hbHdhcmVtdXNpbmdzLmNvbS9zdXBwb3J0aW5nLWZp
bGVzL2Rpb25hZWEtbXlzcWwtcHktZGlmZi8gIwojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyM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wgd29yaworCQkJcXJ5ID0gc3RyKHFyeSkKKwkJCSNsb2dnZXIuaW5mbygi
cTogJXNcbiIgJSBxcnkpCisKKwkJCXVybGlkeCA9IC0xCisJCQlodHRwaWR4ID0gcXJ5LmZpbmQo
IidodHRwOiIpCisJCQlodHRwc2lkeCA9IHFyeS5maW5kKCInaHR0cHM6IikKKwkJCWlmIChodHRw
aWR4ID49IDApOgorCQkJCXVybGlkeCA9IGh0dHBpZHggKyAxCisJCQllbGlmIChodHRwc2lkeCA+
PSAwKToKKwkJCQl1cmxpZHggPSBodHRwc2lkeCArIDEKKworCQkJaWYgKHVybGlkeCA+PSAwKToK
KwkJCQl1cmxlbmQgPSBxcnkuZmluZCgiJyIsdXJsaWR4KQorCQkJCWlmICh1cmxlbmQgPj0gMCk6
CisJCQkJCXVybCA9IHFyeVt1cmxpZHg6dXJsZW5kXQorCQkJCQlsb2dnZXIuaW5mbygiVTogJXNc
biIgJSB1cmwpCisKKwkJCQkJaSA9IGluY2lkZW50KCJkaW9uYWVhLmRvd25sb2FkLm9mZmVyIikK
KwkJCQkJaS5jb24gPSBzZWxmCisJCQkJCWkudXJsID0gdXJsCisJCQkJCWkucmVwb3J0KCkKKwor
CQkJCQlyID0gTXlTUUxfUmVzdWx0X09LKE1lc3NhZ2U9JyNvay4uLihjOlxpc2V0dXAuZXhlKSBw
b3J0bnVtYmVyICgzMzg5KSBvc3ZlcnNpb24gKFdpblhQKScsU2VydmVyU3RhdHVzPXNlbGYuYXV0
b2NvbW1pdCAqIDB4MDAyKQogCQllbHNlOgogCQkJcC5zaG93KCkKIAkJCXRyeToK

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s