일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- JavaScript
- base32
- aslr
- Caesar Cipher
- Linux
- 카이사르 암호
- Pigpen Cipher
- Fortran 90
- Python
- AVR
- webhacking
- Navajo alphabet
- sql injection
- php_extract
- cookie
- 비즈네르 암호
- assembly
- base16
- Qrcode
- BASE64
- burpsuit
- overthewire
- Mail Header injection
- 시저 암호
- Masonic Cipher
- vigenere cipher
- Javscript
- sha1
- Web Hacking
- reversing
- Today
- Total
목록programming (15)
My Drive
//pkt_send.c #include #include #include #include #include // #include typedef struct mac_address {u_char byte1;u_char byte2;u_char byte3;u_char byte4;u_char byte5;u_char byte6;}mac_address; typedef struct ip_address{u_char byte1;u_char byte2;u_char byte3;u_char byte4;}ip_address; typedef struct ip_header{u_char ver_ihl;u_chartos;u_short tlen;u_short identification;u_short flags_fo;u_charttl;u_ch..
//pkt_dump.c #include "pcap.h" typedef struct mac_address {u_char byte1;u_char byte2;u_char byte3;u_char byte4;u_char byte5;u_char byte6;}mac; #define ETHER_ADDR_LEN6struct ether_header{u_char ether_dhost[ETHER_ADDR_LEN];u_char ether_shost[ETHER_ADDR_LEN];u_short ether_type;}eth; typedef struct ip_address{u_char byte1;u_char byte2;u_char byte3;u_char byte4;}ip_address; typedef struct ip_header{u..
// udp_header.c #include "pcap.h" typedef struct mac_address {u_char byte1;u_char byte2;u_char byte3;u_char byte4;u_char byte5;u_char byte6;}mac; #define ETHER_ADDR_LEN6struct ether_header{u_char ether_dhost[ETHER_ADDR_LEN];u_char ether_shost[ETHER_ADDR_LEN];u_short ether_type;}eth; typedef struct ip_address{u_char byte1;u_char byte2;u_char byte3;u_char byte4;}ip_address; typedef struct ip_heade..
// tcp_header.c #include "pcap.h" typedef struct mac_address {u_char byte1;u_char byte2;u_char byte3;u_char byte4;u_char byte5;u_char byte6;}mac; #define ETHER_ADDR_LEN6struct ether_header{u_char ether_dhost[ETHER_ADDR_LEN];u_char ether_shost[ETHER_ADDR_LEN];u_short ether_type;}eth; typedef struct ip_address{u_char byte1;u_char byte2;u_char byte3;u_char byte4;}ip_address; typedef struct ip_heade..
// ip_header.c #include "pcap.h" typedef struct mac_address {u_char byte1;u_char byte2;u_char byte3;u_char byte4;u_char byte5;u_char byte6;}mac; #define ETHER_ADDR_LEN6struct ether_header{u_char ether_dhost[ETHER_ADDR_LEN];u_char ether_shost[ETHER_ADDR_LEN];u_short ether_type;}eth; typedef struct ip_address{u_char byte1;u_char byte2;u_char byte3;u_char byte4;}ip_address; typedef struct ip_header..
// mac_address.c #include "pcap.h" typedef struct mac_address {u_char byte1;u_char byte2;u_char byte3;u_char byte4;u_char byte5;u_char byte6;}mac; #define ETHER_ADDR_LEN6struct ether_header{u_char ether_dhost[ETHER_ADDR_LEN];u_char ether_shost[ETHER_ADDR_LEN];u_short ether_type;}eth; void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data); main(){pcap_if_t *a..
// basic_dump. #include "pcap.h" void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data); main(){pcap_if_t *alldevs;pcap_if_t *d;int inum;int i = 0;pcap_t *adhandle;char errbuf[PCAP_ERRBUF_SIZE]; if(pcap_findalldevs(&alldevs, errbuf) == -1)// 랜카드 검색{fprintf(stderr, "Error in pcap_findalldevs: %s\n", errbuf);exit(1);} for(d=alldevs; d; d=d->next)// 검색된 랜카드 정보 ..
print '\033[1;30mGray like Ghost\033[1;m' print '\033[1;31mRed like Radish\033[1;m' print '\033[1;32mGreen like Grass\033[1;m' print '\033[1;33mYellow like Yolk\033[1;m' print '\033[1;34mBlue like Blood\033[1;m' print '\033[1;35mMagenta like Mimosa\033[1;m' print '\033[1;36mCyan like Caribbean\033[1;m' print '\033[1;37mWhite like Whipped Cream\033[1;m' print '\033[1;38mCrimson like Chianti\033[1..
• 배열 선언 : dimension◦ example :real, dimension(2,2) :: areal, dimension(3:4,-2:-1) :: qinteger, parameter :: m=27, n=123real, dimension(n,m) :: b,creal, dimension(m) :: x,y • 배열 관련 함수 : shape, size, lbound, ubound◦ example :shape(b) → 123, 27 (= n,m) ! 배열 b의 모양(가로, 세로 크기)size(b) → 3321 (= 123*27) ! 배열 b의 크기(가로x세로)size(b,1) → 123 ! 배열 b의 가로 크기size(b,2) → 27 ! 배열 b의 세로 크기lbound(q,2) → −2 ! 배열 q의 세로..
1. 간단한 입출력 ( terminal에서 )◦ example :real :: aprint*,'Enter a real number'read*,aprint*,'input was ',a 2. 일반적인 입출력read (*,*) / write (*,*) → write (unit=*, fmt=*)• Units 입출력 유닛, 어디서 데이터를 읽어오고 어디에 데이터를 쓸지( *은 read에서는 키보드, write에서는 스크린을 의미 )◦ example :open(1,file='output')write(1,*) 'Hello, world!'close(1)• Error handling (end=n, err=m)◦ example :open (77,file='numbers')i=0doread(77,*,end=200,err=1..