블로그 이미지
vicjung

프로그래밍이나 컴퓨터 관련 위주 블로그

Rss feed Tistory
Programming 2011. 11. 15. 00:27

google-breakpad

오픈소스 크래쉬 리포팅 플랫폼

구글에서 하는 것 같은데 좋은지 잘은 모르겠음.

대략적으로 보이는 양으로 봐서는 방대한 스타일은 아닌듯 보이고...

난 서버쪽을 주로 해서 클라이언트 크래쉬 리포팅 쪽을 많이 다뤄보지 않아서 잘 평가가 안되네..

주요 특징

  1. (개별 사용자 용) 크래시가 발생했을 때, 이를 breakpad 에서 사용하는 포맷으로 덤프를 남겨주는 부분: in-process 덤프만 있는 게 아니라, 다른 프로세스에서 dump를 남기는 방식(out-of-process dump)도 지원한다
  2. (Build-System 용) 디버그 정보를 읽어서 breakpad 내부 형식으로 바꾸는 부분 : Win32 pdb 나 –g 옵션을 넣고 빌드한 *nix 바이너리에서 심볼 데이터를 뽑아낸다
  3. (Crash Collector 용) 1에서 나온 정보를 가지고 2를 이용하여 스택 트레이스를 뽑아내는 부분

참조:  Breakpad 로 CrashReporter 만들기


 

'Programming' 카테고리의 다른 글

URL FORMAT  (0) 2011.11.24
유니코드에 대비한 프로그램을 작성하는 여섯가지 원칙  (0) 2011.11.20
닷넷에서 xml 처리  (0) 2011.11.14
원격 인스톨 방법  (0) 2011.11.05
윈도우에서 자동 실행되는 경로들  (0) 2011.11.05
,
Programming 2011. 11. 14. 02:30

닷넷에서 xml 처리

더 있을수도 있지만 우선은

 

CHOICES

PROS

CONS

XmlTextReader

-Fastest
-Most efficient (memory)
-Extensible

-Forward-only
-Read-only
-Requires manual validation

XmlValidatingReader

-Automatic validation
-Run-time type info
-Relatively fast & efficient
(compared to DOM)

-2 to 3x slower than XmlTextReader
-Forward-only
-Read-only

XmlDocument (DOM)

-Full traversal 
-Read/write 
-XPath expressions

-2 to 3x slower than XmlTextReader/XmlValidatingReader
-More overhead than XmlTextReader/XmlValidatingReader

XPathNavigator

-Full traversal
-XPath expressions
-XSLT integration
-Extensible

-Read-only 
-Not as familiar as DOM

XPathDocument

-Faster than XmlDocument
-Optimized for XPath/XSLT

-Slower than XmlTextReader

,
Programming 2011. 11. 5. 14:18

원격 인스톨 방법

두가지 방법인데 둘다 원격으로 무엇을 실행하는 용도로는 사용을 했었는데 설치로 사용은 안해봤네 ㅋㅋ


NT 시스템에 대한 모의 해킹 중 다양한 서비스를 원격 인스톨하는 기법을 사용하는 경우가 있습니다.


기본적인 명령어의 사용법이나 개념 이해를 도울 수 있는 자료가 있기에 올려봅니다.


---


- How may I remotely install RA on a single distant PC?
- You can use a free tool called psexec.exe available from www.sysinternals.com to deploy and run Slave on all the machines of your LAN with a single line of text.

For the ones that want to understand how it works, you need the Administrator account of the distant PC, and the PC must be reachable by TCP/IP.
Open a DOS box and type the following commands:

  • NET USE \192.168.112.24IPC$ /user:administrator password
  • COPY "C:Slave.exe" "\192.168.112.24C$WinNT (you may have to replace WinNT by Windows)
  • NETSVC \192.168.112.24 schedule /start   (make sure that the Scheduler Service is started)
  • NET TIME \192.168.112.24                        (note the time of the remote PC)
  • AT \192.168.112.24 10:00 "C:Slave.exe"    (replace 10:00 by the time of the PC plus one minute)

That's it! RA is running on the remote PC so you can access it with Master! You can also use the following commands:

  • REGINI -m \192.168.112.24  ra.reg             (to install some Registry settings on the remote PC)
  • SHUTDOWN \192.168.112.24 /R /Y /C /T:0  (to reboot the remote PC)

There is a LOGON SCRIPT in the PDF Manual to remotely install/Update/Remove RA on remote PCs. 

 

---


출처 : http://www.twd-industries.com/en/faq.htm 


정리해 보자면... 

1. psexec 를 활용하여 명령어 한번에 원격 서비스 설치 가능

예) psexec \* -u domainadministrator -p password -c -d -i "C:myservice.exe"

       - psexec \192.168.124.145 -u domainmike -p secret -c -d -i "C:myservice.exe"


2. psexec 활용 불가 시

net use \192.168.112.24IPC$ password /user:administrator

copy "C:slave.exe" "\192.168.112.24C$WinNT

netsvc \192.168.112.24 schedule /start

net time \192.168.112.24

at \192.168.112.24 10:00 "C:slave.exe"


or


regini -m \192.168.112.24 ra.reg 

shutdown \192.168.112.24 /r /y /c /t:0


이 기법은 원격 VNC 설치에도 즐겨 사용되는 기법입니다.

출처:원격 인스톨 방법

'Programming' 카테고리의 다른 글

google-breakpad  (0) 2011.11.15
닷넷에서 xml 처리  (0) 2011.11.14
윈도우에서 자동 실행되는 경로들  (0) 2011.11.05
터미널 세션 강제 종료  (0) 2011.11.05
인코딩 타입 알아내기  (0) 2011.10.04
,
TOTAL TODAY