Sena Technologies, Inc. HelloDevice Super 1.1.0

Similar documents
HelloDevice Super Series

강의10

vi 사용법

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

gdb 사용법 Debugging Debug라는말은 bug를없앤다는말이다. Bug란, 컴퓨터프로그램상의논리적오류를말하며, 이것을찾아해결하는과정이바로, debugging이다. 초기컴퓨터들은실제벌레가컴퓨터에들어가서오작동을일으키는경우가있었다고하며, 여기서 debug 이라는말이

6주차.key

PowerPoint 프레젠테이션

untitled

PowerPoint 프레젠테이션

untitled

PowerPoint 프레젠테이션

chap7.key

À©µµ³×Æ®¿÷ÇÁ·Î±×·¡¹Ö4Àå_ÃÖÁ¾

2009년 상반기 사업계획

슬라이드 제목 없음

본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게 해 주는 프로그램입니다. 다양한 기능을 하는 플러그인과 디자인

MySQL-Ch10

본 강의에 들어가기 전

PowerPoint 프레젠테이션

untitled

PowerPoint 프레젠테이션

untitled

Interstage5 SOAP서비스 설정 가이드

PowerPoint 프레젠테이션

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V

untitled

Copyright 2004 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A..,,. Sun. Sun. Berkeley BSD. UNIX X/Open Company, Ltd.. Sun, Su

Solaris Express Developer Edition

vi 사용법

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

PowerPoint 프레젠테이션

MPLAB C18 C

untitled

1217 WebTrafMon II

Sun Java System Messaging Server 63 64

Microsoft PowerPoint - lab14.pptx

PRO1_02E [읽기 전용]

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat

Remote UI Guide

chapter1,2.doc

hd1300_k_v1r2_Final_.PDF

자바-11장N'1-502

Sena Device Server Serial/IP TM Version

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

00829A_SHR-6164-KOR.indb

10.

vm-웨어-앞부속

초보자를 위한 C++

8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 )

Microsoft PowerPoint - ch09_파이프 [호환 모드]

2009년 상반기 사업계획


1. GigE Camera Interface를 위한 최소 PC 사양 CPU : Intel Core 2 Duo, 2.4GHz이상 RAM : 2GB 이상 LANcard : Intel PRO/1000xT 이상 VGA : PCI x 16, VRAM DDR2 RAM 256MB

Poison null byte Excuse the ads! We need some help to keep our site up. List 1 Conditions 2 Exploit plan 2.1 chunksize(p)!= prev_size (next_chunk(p) 3


Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

Network seminar.key

학번 : 이름 : 1. 다음파일트리구조를가진유닉스시스템이있다고가정하자. / /bin/ /home/ /home/taesoo/ /usr/ /usr/lib/ /usr/local/lib /media 모든폴더에파일이하나도없다고가정했을때사용자가터미널에서다음 ls 명령입력시화면출력

Microsoft Word - Network Programming_NewVersion_01_.docx

Mango220 Android How to compile and Transfer image to Target

hlogin7

rmi_박준용_final.PDF

1. efolder 시스템구성 A. DB B. apache - mod-perl - PHP C. SphinxSearch ( 검색서비스 ) D. File Storage 2. efolder 설치순서 A. DB (MySQL) B. efolder Service - efolder

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

untitled

LXR 설치 및 사용법.doc

bn2019_2

Microsoft Word - Automap3

01Àå

PowerPoint 프레젠테이션

/chroot/lib/ /chroot/etc/

PRO1_09E [읽기 전용]

K&R2 Reference Manual 번역본

목차 1. 제품 소개 특징 개요 Function table 기능 소개 Copy Compare Copy & Compare Erase


Windows Embedded Compact 2013 [그림 1]은 Windows CE 로 알려진 Microsoft의 Windows Embedded Compact OS의 history를 보여주고 있다. [표 1] 은 각 Windows CE 버전들의 주요 특징들을 담고

APOGEE Insight_KR_Base_3P11

PowerPoint 프레젠테이션

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

No

SSi Super Systems Inc / DP RETURNING THE UNIT TO SSI 11 SPARE PARTS 12 APPENDIX A 13 APPENDIX B 14 Super System Inc DP2000

휠세미나3 ver0.4

목차 개요 3 섹션 1: 해결 과제 4 APT(지능형 지속 위협): 이전과 다른 위협 섹션 2: 기회 7 심층 방어 섹션 3: 이점 14 위험 감소 섹션 4: 결론 14 섹션 5: 참조 자료 15 섹션 6: 저자 소개 16 2

2015 CodeGate 풀이보고서 김성우 1. systemshock strcat(cmd, argv[1]); 에서스택버퍼오버플로우가발생합니다

13주-14주proc.PDF

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5]

2016_Company Brief

PowerPoint 프레젠테이션

untitled


Mango-AM335x LCD Type 커널 Module Parameter에서 변경하기

Figure 5.01

ABC 11장

KEY 디바이스 드라이버

Transcription:

HelloDevice Super 110

Copyright 1998-2005, All rights reserved HelloDevice 210 ()137-130 Tel: (02) 573-5422 Fax: (02) 573-7710 E-Mail: support@senacom Website: http://wwwsenacom

Revision history Revision Date Name Description V001 2003-09-09 H Yeom Initial Draft V100 2003-09-22 H Yeom Initial Release V110 2004-01-12 H Yeom GDB

1 5 2 SDK ( ) 6 3 7 31 7 32 7 33 7 34 7 4 8 41 HTML 8 42 CGI 8 43 10 5 10 51 10 52 11 53 12 6 GDB 13 61 GDB 13

1 HelloDevice Super - RS-232/422/485 HelloDevice Super (SDK),,, FIFO (read/write), HelloDevice Super Linux OS, UNIX / Linux -

2 SDK ( ) HelloDevice Super SDK HelloDevice Super SDKPC CF HelloDevice Super SDK SDK,,, C SDK /mnt/flash bin Binary files can be executed gcc, ld, ar, as, include Header files for SS applications lib Library files for SS application sample web Sample C files for web customization filter Sample C files for filter customization

3 31 1) CF HelloDevice Super SDK 2) SS PCMCIA (PC ) SDK 3) PC, C HelloDevice Super CLI, PC Linux /mnt/flash/lib HelloDevice Super CLI PC,, HelloDevice Super - SCP - FTP - ( progacprogbc C prog ) # gcc o prog progac progbc # /prog

41 HTML HelloDevice Super HTML HTML /usr2/usrweb indexhtml HTML /usr2/usrweb, HTML 42 CGI 421 CGI CGI CGI /mnt/flash/sample/web/cgi/shellc 1 CGI # cd /mnt/flash/sample/web/cgi # make 2 CGI # cp shellcgi /usr2/cgi-bin/ 3, SS11 0/400/800

4 http://19216812/cgi-bin/shellcgi (HelloDevice Super IP 19216812 ) 422 CGI CGI /usr2/cgi-bin default CGI, Shellc Makefile CC = gcc BIN = shellcgi OBJS = shello util_cgio LDFLAG = -L/mnt/flash/lib BIN : $(OBJS) $(CC) -o $(BIN) $(OBJS) $(LDFLAG) co : $(CC) -c $< all : $(BIN) clean : rm -f $(BIN) $(OBJS) util_cgihutil_cgic Appendix A CGI /usr2/cgi-bin

43 CGI /usr2/usrweb 5 51 HelloDevice Super FIFO, FIFO (read/write) Remote Hosts Socket Read/Write App FIFOs Filter App FIFOs Serial port Read/Write App Serial Port FIFO, FIFO

1) /tmp/port_fifos/portx_f2sfifo (, X1 ) 2) /tmp/port_fifos/portx_f2efifo 3) /tmp/port_fifos/portx_s2ffifo FIFO 4) /tmp/port_fifos/portx_e2ffifo FIFO 5), FIFO 6), 7) /var/run/portx_filterpid PID(Process ID) (PID, (disable) ) 8) SIGTERM 52 /mnt/flash/sample/filter/ 1 # cd /mnt/flash/sample/filter # make 2 # cp data_conversion /usr2/sample_filter

3 : Thread, Thread Thread Thread ThreadThread, SIGTERM ThreadSIGTERM Thread / Thread - emptyc / / FIFO - periodic_commandc / / FIFO, - data_conversionc - data_calibrationc (:, ) - data_storingc (:, ) RAM (/tmp )

- data_event_handlingc (:, ) SNMP - cqc Circular queue 6 GDB HelloDevice Super SDKGNU GDB ( : GDB SDK v110 ) GDB :, GDBgdb, GDB quit GDB help GDB GDB GDB GDB, -g 61 GDB GDB, Web UIeditconf,

1 # cp /mnt/flash/sample/filter/makefile /usr2/ # cp /mnt/flash/sample/filter/data_conversionc /usr2/ # cp /mnt/flash/sample/filter/cqc /usr2/ # cp /mnt/flash/sample/filter/cqh /usr2/ 2 g Makefile g CFLAGS # cd /usr2/ # vi Makefile //CFLAGS = -pipe CFLAGS = -pipe g 3 GDB do_daemon() save_pid(portnum) GDB (foreground) # vi data_conversionc int main(int argc, char **argv) { if (argc < 2) { fprintf(stderr, "\nusage: %s [portnumber] [echo no_echo]\n\n", get_program_name(argv[0])); return -1; } portnum = atoi(argv[1]); if (argc>2 &&!strcmp(argv[2], "no_echo")) echo_flag = 0; (void) signal(sigterm, handle_sigterm); (void) signal(sigpipe, handle_sigterm); // Remark following two lines to run this program on the foreground // do_daemon(); // save_pid(portnum); do_filter(); close_fifos(); return 0;

} 4 # make data_conversion 5 (ssport)tcp (sstcp) ssport, sstcptcp SS /bin 1 1 # ssport 1 # sstcp 1 # ps ef PID Uid Stat Command 1 root S init 2 root S [keventd] 3 root S [kswapd] 4 root S [kreclaimd] 5 root S [bdflush] 6 root S [kupdate] 8 root S [mtdblockd] 35 root S [jffs2_gcd_mtd5] 57 root S /sbin/cardmgr 80 root S dhcpcd eth0 87 root S /etc/rcd/rc2d/s19sslogger start 97 root S /usr/sbin/inetd 100 root S /usr/local/sbin/webs 110 root S /usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpdconf 113 root S /bin/linkupchecker -c 1 118 root R /etc/rcd/rc2d/s53ss800mand start 126 root S /etc/rcd/rc2d/s53ss800mand start 128 root S /usr/sbin/cron 129 root S -bash 523 root S ssport 1 524 root S ssport 1 525 root S ssport 1 526 root S ssport 1 527 root S ssport 1 529 root S sstcp 1 530 root S sstcp 1 532 root S sstcp 1 533 root S sstcp 1 534 root S sstcp 1 535 root R ps -ef 6 GDB # /mnt/flash/bin/gdb data_conversion

7 GDB, GDB, GNU gdb 50 Copyright 2000 Free Software Foundation, Inc GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions Type "show copying" to see the conditions There is absolutely no warranty for GDB Type "show warranty" for details This GDB was configured as "powerpc-hardhat-linux" (gdb) set args 1 1 1 8, *e2s_thread, TCP (gdb) break *e2s_thread Breakpoint 1 at 0x10003054: file data_conversionc, line 255 r (gdb) r Starting program: /usr2/data_conversion 1 [New Thread 539 (manager thread)] [New Thread 538 (initial thread)] [New Thread 540] [New Thread 541] [Switching to Thread 541] Breakpoint 1, e2s_thread (arg=0x0) at data_conversionc:255 255 { (gdb) 9, *e2s_thread n ( ) e2s_thread (arg=0x0) at data_conversionc:257 257 int nread=0; 261 pthread_setcancelstate(pthread_cancel_enable, NULL); 262 pthread_setcanceltype(pthread_cancel_asynchronous, NULL); 10 274, SS 1 TCP, TeraTerm Pro Hyper Terminal

1, TCP 270 if (f2s_fd < 0) pthread_exit(null); 272 while(!exit_flag) { 274 nread = read(e2f_fd, buf, sizeof(buf)); 275 if (nread<=0) continue; (gdb) 11 275 buf[0], TCP (gdb) display buf[0] 1: buf[0] = 97 'a' (gdb) break 275 Breakpoint 2 at 0x10003160: file data_conversionc, line 275 277 if (echo_flag) { 1: buf[0] = 97 'a' (gdb) c Continuing Breakpoint 2, e2s_thread (arg=0x0) at data_conversionc:275 275 if (nread<=0) continue; 1: buf[0] = 50 '2' (gdb) c Continuing Breakpoint 2, e2s_thread (arg=0x0) at data_conversionc:275 275 if (nread<=0) continue; 1: buf[0] = 51 '3' (gdb) 12 GDB quit (gdb) quit The program is running Exit anyway? (y or n) y ssportsstcp, 5 # killall ssport # killall sstcp GDB GNU (http://wwwgnuorg/software/gdb/documentation/)