DTSRUN 암호화된 배치 파일 만들기

  • Post author:
  • Post category:
  • Post comments:0 Comments
  • Post last modified:October 1, 2013

윈도우즈 배치 파일(.bat)에 dtsrun 명령어를 입력해 놓고, DTS Package를 실행할 수 있습니다.
이때 아이디나 암호 등이 텍스트로 입력되어 있기 때문에 보안 상 문제가 될 수 있습니다.

이러한 문제를 해결하기 위해 dtsrun의 매개변수를 암호화된 텍스트로 입력할 수 있습니다.
다음과 같은 순서대로 하면 됩니다.

Procedure to Encrypt SQL Server DTSRUN Parameters

1. Create a batch file with your DTSRUN command

Example:
Batch file: test01.bat contains

2. DTSRUN /s biwgdcsql02 /u test01 /p goodby /n dts_test01

Add /!y to the end of the DTSRUN command and save your batch file

Example:
Batch file: test01.bat now contains

DTSRUN /s biwgdcsql02 /u test01 /p goodby /n dts_test01 /!y

3. From DOS enter your batch file name followed by > text.txt
This will put the results of the DTSRUN to file text.txt

Example: c>test01 > text.txt

Your text.txt file now contains your dtsrun command encrypted

Example

Text.txt file:
D:\mystuff\DOCS\SQL Server\Bat>dtsrun /s biwgdcsql01 /u test01 /p goodby /n dts_test01 /!y

DTSRun /~S 0x928F677DDD81FD0250CE162775417004D46FB7187384F1B7 /~U 0x61E3505D4C6A2496D5220748798FD9CC /~P 0xEBB63BFB2DA7637633434425CA5C22A0 /~N 0x5E4F2014862B0FFB4671509860E1217D68005C6C8D08A884 /!Y

5. Cut and paste the encrypted parts that you will wish to encrypt into your original batch file

출처 : http://www.geocities.com/swede27410/sqlncrpt.htm

Author Details
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments