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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#define KEYLENGTH 256 | |
int main(int argc, char **argv) { | |
FILE* input; | |
FILE* output; | |
FILE* cipher; | |
char k[KEYLENGTH + 1]; //"CENSORED"; |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char **argv) { | |
FILE* input; | |
FILE* output; | |
char k[] = "VeryLongKeyYouWillNeverGuess"; | |
char c, p, t = 0; | |
int i = 0; |
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
The known-plaintext attack (KPA) is an attack model for cryptanalysis where the attacker has samples of both the plaintext (called a crib), and its encrypted version (ciphertext). These can be used to reveal further secret information such as secret keys and code books. The term "crib" originated at Bletchley Park, the British World War II decryption operation. | |
The flag is CTF{6d5eba48508efb13dc87220879306619} |
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
{ | |
"contributors": null, | |
"coordinates": null, | |
"created_at": "Sun Jan 19 21:23:08 +0000 2014", | |
"entities": { | |
"hashtags": [], | |
"media": [ | |
{ | |
"display_url": "pic.twitter.com/fwztF6mcrh", | |
"expanded_url": "http://twitter.com/misodengaku/status/425012731628888064/photo/1", |
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
public final class CommonUtilities | |
{ | |
public static boolean BALL_COUNT = false; | |
static final LatLng MITAKA = new LatLng(35.702708000000001D, 139.56083100000001D); | |
public static boolean SET_GPS = false; | |
static final String SHAREDPREF_DETAIL_UP_DATE = "detail_up_data"; | |
static final String SHAREDPREF_FEED_UP_DATE = "feed_up_date"; | |
static final String URL_CUSTOM = "http://standard.navitime.biz/matsuyafoods06/Index.act"; | |
static final String URL_FEED = "http://www.matsuyafoods.co.jp/map/index.xml"; | |
static final String URL_FEED_DETAIL = "http://www.matsuyafoods.co.jp/map/detail.xml"; |
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
<?php | |
// 2014/03/02 10:45:23 | |
$data = "h+3PBkOfOg+20u/U5QwaY30CI47Hp0YS6gD08yKvSC75RoXXF0RjsPN0RE+YRciHlC0yp6OKQ6XKiP0NgdLOgaQafs/2Smo9FePYWV9SN6ERXL2JgoxjGNXHSebxUI5N6NmC3kNqruLGbsjQSwCFWwso/MqSNgj1+rtV98zJwAOaMGU17Ka+/YmVjx/7K67CwMrDr4gu7HILsWmIk4gqr8XMDRt1K9JSV1c7tZXhDCXd4kOJmgZ8DdvK6daxdrhYYfYrkkMDhJQCimAWdNm9f3yrIN5cItfSjl0Jr86nfyWVxDG8Ll1VUdTXD7dTRIiGBlFnlVoGzRRlOIIFF/8xNvAnLIAq7cBI4QhE3ELjadFcIUfe+bYNv8F2UynPofSxeD1yv/EVukQDA9FjHdJWsbcLPnQALw3cPNxEulo9Gl2zNWOgXJf4SN9m+Z5OTil0niJGojSMSJp0KEqodgbFVIJwaJCP6gP+uK7CayJE9Ot9Uw9Su4nhX33fngn3xmMAUumjjZg/33CB5f4J7ramGSgmcboELJ7/pbNTYCwzGuXfHgPxL46MlGrEujSUwAI1ub6uy7x3Fhh9qAnvrzPMySizFkR3qjhPieWX+AwpA+NFbAfJlTOi9OIG1SXCb2X2dLFn8b2Kx58ssX7Ea23s+hUu3oJvcC8XAYWCXDqIPrbNUlAhkTmOfDNjjawV3MBaR1ggu1rHUTMEDjgnl6jruaIb5BGDwNevEymTBqTIOGBxVj+yme3P4vQgUf30FFqsLsqGH0oReZ5+coTdxJkOtyJ0B5xG1egC9T4RnmqLMSclXsEEUMpV97NIugn7WqZSZUzIKL8d1Qx/NfWzn1fOWDYJU4g5iEi6UVwQy7sIEHHuenxfJgA3BT2polpchup5NNJlfXTBqlNbTb2BUxbXBfraiQdR/LRkcvMCobOY4u05BKYO/S1DSKCCfqFZ9vCLwugl506wZDomii1Ad3UBchHP |
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
f0VMRgEBAQAAAAAAAAAAAAIAAwABAAAAgIMECDQAAACAEAAAAAAAADQAIAAHACgAIgAfAAYAAAA0 | |
AAAANIAECDSABAjgAAAA4AAAAAUAAAAEAAAAAwAAABQBAAAUgQQIFIEECBMAAAATAAAABAAAAAEA | |
AAABAAAAAAAAAACABAgAgAQI7AYAAOwGAAAFAAAAABAAAAEAAADsBgAA7JYECOyWBAgUAQAAGAEA | |
AAYAAAAAEAAAAgAAAAAHAAAAlwQIAJcECMgAAADIAAAABgAAAAQAAAAEAAAAKAEAACiBBAgogQQI | |
IAAAACAAAAAEAAAABAAAAFHldGQAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAEAAAAL2xpYi9sZC1s | |
aW51eC5zby4yAAAEAAAAEAAAAAEAAABHTlUAAAAAAAIAAAAEAAAAAQAAAAMAAAAJAAAABwAAAAYA | |
AAAIAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAADAAAABAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAA | |
AC8AAAAAAAAAfAAAABIAAAAhAAAAAAAAAH0AAAASAAAAKAAAAAAAAABYAAAAEgAAAEkAAAAAAAAA | |
5wAAABIAAAA6AAAAVIYECAQAAAARAA4ANQAAAAAAAAB8AAAAEgAAAAEAAAAAAAAAAAAAACAAAAAa | |
AAAAAAAAACAAAAASAAAAAF9fZ21vbl9zdGFydF9fAGxpYmMuc28uNgBzdHJjcHkAc3lzdGVtAHN0 |
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
[7308] 140319.101840.9543: CleanupTask: TaskTurnOffMediaStreaming started | |
[7308] 140319.101840.9573: MediaStreamingObjectModel: ProxyManager.ConnectConnectorAsync started | |
[7308] 140319.101840.9573: MediaStreamingObjectModel: ProxyManager initialized | |
[1912] 140319.101840.9573: ProviderRegistryFacade: Query for contract:Microsoft.WindowsServerSolutions.MediaStreaming.IMediaStreaming, providerId:, server:True, requiresPrs:False | |
[1912] 140319.101840.9593: ProviderRegistryFacade: _builtInProvidersProxy == null: True, _providerRegistryProxy == null: False | |
[1912] 140319.101840.9603: ProviderRegistryFacade: Provider address: net.tcp://127.0.0.1:65532/Microsoft.WindowsServerSolutions.MediaStreaming.IMediaStreaming/Microsoft.WindowsServerSolutions.MediaStreaming.IMediaStreaming | |
[7308] 140319.101840.9603: MediaStreamingObjectModel: MediaStreamingManager initialized | |
[7308] 140319.101840.9613: MediaStreamingObjectModel: MediaStreamingManager.IsMediaStreamingEnabled started | |
[7308] 140319.101840.9693: MediaStreamingObjectMo |
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
private boolean isSuBinaryPresent() | |
{ | |
String[] arrayOfString = { "/data/local", "/data/local/bin", "/data/local/xbin", "/sbin", "/system/bin", "/system/sd/xbin", "/system/xbin", "/system/bin/failsafe", "/vendor/bin" }; | |
int i = arrayOfString.length; | |
int j = 0; | |
String str2; | |
if (j < i) | |
{ | |
String str1 = arrayOfString[j]; | |
str2 = str1 + "/su"; |
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
// http://msdn.microsoft.com/ja-jp/library/cc364822.aspx | |
#include <windows.h> | |
void SetCapsLock( BOOL bState ) | |
{ | |
BYTE keyState[256]; | |
GetKeyboardState((LPBYTE)&keyState); | |
if( (bState && !(keyState[VK_CAPITAL] & 1)) || | |
(!bState && (keyState[VK_CAPITAL] & 1)) ) | |
{ |