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/python | |
| import socket | |
| p = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| p.connect(("number.quals.seccon.jp", 31337)) | |
| while True: | |
| result = p.recv(2048) | |
| if "?" not in result: |
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
| #define bitGet(v, n) ((v >> n) & 1) | |
| int bitGet(int v, int n){ | |
| switch(n - 1){ | |
| case 7: v >>= 1; | |
| case 6: v >>= 1; | |
| case 5: v >>= 1; | |
| case 4: v >>= 1; | |
| case 3: v >>= 1; | |
| case 2: v >>= 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
| /* | |
| * ===================================================================================== | |
| * | |
| * Filename: cat.c | |
| * | |
| * Description: My cat program | |
| * | |
| * Version: 1.0 | |
| * Created: 25-04-2013 13:58:45 | |
| * Compiler: gcc |