I hereby claim:
- I am pikhq on github.
- I am pikhq (https://keybase.io/pikhq) on keybase.
- I have a public key ASB1pzAGBTjRoHuBg80KERl-i0fGckiJHBeJ0ziD_Fq92wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* Copyright (c) 2016 Ada Worcester <ada@oss.pikhq.com> | |
* | |
* Permission to use, copy, modify, and/or distribute this software for any | |
* purpose with or without fee is hereby granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | |
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
/* Copyright © 2015 Ada Worcester <oss@ada.pihq.com> | |
* | |
* Permission to use, copy, modify, and/or distribute this software for any | |
* purpose with or without fee is hereby granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
#define _POSIX_C_SOURCE 200809L | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <netinet/in.h> |
#define _XOPEN_SOURCE 700 | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <sys/wait.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> |
#include <stdint.h> | |
#include <stdio.h> | |
int main() | |
{ | |
int addr = 0x200; | |
while(!feof(stdin)) { | |
uint16_t opcode = (unsigned char)getchar() << 8; | |
opcode |= (unsigned char)getchar(); | |
if(feof(stdin)) { break; } |