Dreamhack/Dreamhack Wargame (Challenge)

[118] IT 비전공자 [dreamhack]Batch Checker문제 풀기

imaginefuture-1 2025. 1. 6. 08:39

후후 실행이요..? 더블클릭하면 되는거 아닌가요?

 

 

 

 

응 아니야~ wrong이야~

 

 

https://imitursa.tistory.com/4408

 

윈도우즈 배치 파일 : substring

윈도우즈 배치 파일 변수에서 하위 문자열을 가져오고 싶을 때는 %변수명:~시작위치,길이% 와 같은 형식을 사용한다. c:\> help set ... %PATH:~10,5% 은(는) PATH 환경 변수를 확장한 다음 확장된 결과의 11

imitursa.tistory.com

 

 

 

Batch 파일은 Windows에서 사용하는 스크립트 파일로, 명령어를 순서대로 실행할 수 있는 간단한 프로그램입니다. 확장자는 .bat 또는 .cmd로 끝납니다. DOS 명령어나 Windows 명령 프롬프트에서 실행되는 명령을 담고 있습니다.

배치 파일의 주요 기능

  • 명령어 자동 실행
  • 프로그램 실행, 파일 복사, 디렉터리 변경 등의 작업 자동화
  • 명령어 조건 실행 (예: if, for, goto 명령 사용)

"cmd 창이 켜지면서 wrong만 뜸" 현상

배치 파일 실행 시 wrong만 뜬다면, 다음과 같은 문제일 가능성이 있습니다:

  1. 입력 값 오류
    • 배치 파일에서 사용자 입력이 필요한데, 올바른 입력이 전달되지 않았을 수 있습니다. 예를 들어, 특정 플래그나 키 값을 입력해야 결과가 바뀔 수 있습니다.
    • 배치 파일 내용을 확인해 보세요. 예를 들어, 다음과 같은 입력 요구가 있을 수 있습니다:
      @echo off
      set /p input=Enter the flag:
      if "%input%"=="DH{correct_flag}" (
          echo Correct!
      ) else (
          echo Wrong
      )
      pause
      
  2. 배치 파일이 다른 파일을 참조
    • 배치 파일이 다른 프로그램, 데이터 파일, 또는 네트워크 리소스를 참조하고 있을 수 있습니다.
    • 예를 들어, .exe 파일이나 다른 스크립트와 연동될 수 있습니다. 이런 경우 필요한 파일이 누락되었을 가능성도 있습니다.
  3. 디버깅용 메시지
    • wrong이라는 메시지가 의도적으로 출력될 수 있습니다. 배치 파일이 특정 조건을 만족하지 못하면 항상 wrong을 출력하도록 작성되어 있을 가능성도 있습니다.
  4. 배치 파일 코드 확인
    • 배치 파일을 텍스트 편집기(예: 메모장)로 열어서 내용을 확인해 보세요. 어떤 조건에서 wrong 메시지가 출력되는지 분석할 수 있습니다.

문제 해결 방법

  1. 배치 파일 내용 확인
    • 배치 파일을 텍스트 편집기에서 열어 어떤 명령어들이 실행되고 있는지 확인하세요.
  2. 입력 요구 사항 확인
    • 배치 파일 실행 시 사용자 입력을 요구할 수 있습니다. 필요한 경우 올바른 입력 값을 전달하세요.
  3. 필요한 파일 확인
    • 배치 파일과 함께 제공된 다른 파일(exe, dll, txt 등)이 있는지 확인하고, 모두 같은 디렉터리에 있는지 확인하세요.
  4. 디버깅
    • pause 명령을 추가해서 실행 중 어떤 명령어에서 문제가 발생했는지 확인합니다:
      @echo off
      echo Starting debug...
      pause
      set /p input=Enter flag:
      echo You entered: %input%
      pause
      
  5. 분석 도구 사용
    • 배치 파일이 복잡한 경우, 명령어 흐름을 분석하거나 배치 파일에서 호출하는 프로그램을 역공학으로 분석해볼 수 있습니다.

배치 파일 분석 후 추가적인 도움이 필요하다면, 파일 내용을 알려주세요. 함께 분석해 드릴게요! 😊

 



cmd 창에서 help set하니 설명이 주르르 뜹니다~

 

메모장으로 여니 짜자잔~엄청난 SET들의 향연

SET "vFKIqCfPYoAmeeWzfdvyZYfpahOFHCVyQUtAkTijwIPopWBKOMfruHFORhPjfwYyYKCEqxVzFWNMyyobMWMSiubUIryEWWNrCSRc=ulZiZYfKDHzPwKTOGzSxCQgAqLsLrlZgbVwLZOGrhfXGldhCPdOqLQNphEoyTNANLqJxIeMbOLbSksFJKIydnFKWZJqenBoJNWtVH"
SET "UVeVvzSzLQEcxjDZnrFCsuchulInGHnmANMmdAcpDxNXQWJYholJwnXMYMxyZtauzxbgDhInaTdlgaYsyxWnIlwrYCQQJWsXYRsD=zoicwbfhakobovodszjrrxdeqvebafhaqifmanmwkufv_xxafsqaewqujcuydhyiueqxjznojjjymdxzbkjwmjxhwgsmxwwxeowjx"
SET "yEBnwgURQEtxNyJTQpBBOflLAlqjTJjNlGNQOInMnhmSxetZWSHstdrmhNWJdKqFvDmmAAxbJmHZdKvRUuGtVtqwLrYuvKdhFrwC=wqjyigxsjrxoxklsfrpslduzqiccptkwckstuepzmceqphhpwahxihprcdxjkkqwtnsprrxlkiovwvkpboqonzhwgbscdjlnhshnz"
SET "xxsvbkKFHowVNWtNrPRXchaWfrCrujDbkvcfDbxjbIkXDIbLINmeklqdzreBaMtVJcGbjxJwyWdgYjSQgdhLncKcsoCxxATVAtCF=mfkssaiddyvphmrhjjfqnajxlpvzznyeyioqdfsaxxjgekgeiwqytoehidlfbwphykulufopfeetrzgywtljqghlxjhdryiliqxzi"
SET "KBLiGUYsFnWLvaMeVkaeVVeFlfZRcrxYJiTNHdQSoYVJZoBzuFEwJbSXqvmqbPMkTYAkGNMDxAhQkDvpbYEDdKXzWvlrdOJWEDZz=gnyddtjmzvewrvrevxuyfwifchjyyywolgpzejiugezcydnlgbszzefdemsauzcjirskkhcuaoeexlrlamc&fvyjwqwbbktsfraka"
SET "kdoBhHnCDXdNVjtRkfvBKxFTAjsSrKBUraMpMdHzZwhvXrcYnBgXsfXuhRYnPQPDtGYQYgfxYzNUJVSFvRtcyCWcqbsGdCHJAXLa=rRcNhyNuzsBmMeYrNIGrTXjVADyKGPkzyAldUMLtGLiduTnpRJBjVVBRGKczowrLQRtwRjpzzlPTTHlBDQLRiyEQVFkCSjfEWSyoZ"
SET "DEeyOMqmhwRKvfqBhHQOFDGUeojEBUbnpsjzoqwemaniNoHvVllaYbSXUtlPNljpSZiHdRqRgCGITclcKHURctCdJFvOmSaFHRnj=EPufDvJKIBjledZzYbLRyjpmQAjWeovjXsKfYWDUWyZHiTaQFMdavHoztshWYEDgZpfGRygbHnqgzRXhIervaKLldBZYYYDHZwNJQ"
SET "tWtDFxVVNdburePMrddbWpadDxfqxyLEjneybCnXSlHVWZjUhwlTHOXLlZtcHCjhVRUvpAHmeCzcAIFrWxXQDHKpBZNKqyhCubwM=zqrfrsyonazxvrdibliiwaojomjsuduthvxondskhlsrovavormrbevtdtgvijtatyvozqxgjsfzufwfsoamingchdiimkruwmihm"
SET "IlxoyxohrpuoOsHcHHncEkDsTlAEJVYgEfJnBLrDUcnYHvQORdVhnlGAyrNgWXnvBenZuPJDgdlVfWULPyCGVvVJhBepIqXmQgjm=zoastxwicghtpjlwydylanpycrkhxhsilftqnfbgouyvwjxbjsyjlaoxnjtyobvujkvpptmuqwjucpznqayghdufmptfAdvxjqhqh"
SET "FRSQpATyUQlAdsPAdhYeCrvPzxnrDDGVtBllWJQLBKNctsAKFhxIeQUyOdfoSssKbzUIbFIHARwhMtoIxeWInAfwyhEdNYxLqhCl=vdguqkkabnsnfniekhqeyqbjcnynzikoucoqslyqawwttwktfstjFqwqlttvdjixuuptkvhdbebsnyxqcvxcmphcscbxmqdpsfppw"
SET "RVcqumfMYAgpDDaWiyvIJzoznMApfhcgHQbLZPsrLrFoSsLRjLonERbRDZHIKDzFlLEVFROxrXbXhzJpPUKbXudIuYzZjUmfowQZ=bodtpvunlkgbcveipypsekzaqirqwlaNubhganeoubdvnspldzorzohbiaqgowgxreafuantpkllxlwrvlqfzudcqgyrgouemwhzf"
SET "HznwrifJfZLTGNMOnulEMVmBNjjaNLMlwCBabKQLYjoknzpyqVgpejFowmSlUhKbgFvyyHhzpjxmzkRHvbdgOiodNPKMtzFnsxOE=orpwnqvjfdnxqebethuuwfnugllghszkrofqanyiowxbbpfkxhnvlahevgnxsjrzqvfrwfbveuwjvqjnkzhtzcjokokgddGdpreeb"
SET "CaxMjThxclwPquSYFCweNliroLExzeyPfCHWhokpLGvOAORIPoIowIKxdbGxEbtlrNcUOOOEISJqMhOdZEUxhJOvjSMUrAxXejAl=WfWToAoquCtYTEmyvVDqNMedSGJMLDJbxIAiNYgojtGrgWswEpzbyKclpEwcyrFdZszhjpjFzXgmMVBLQKKzxfkMQVnDlTlTpZSXp"
SET "CoFdqIPklsMjEnaTnSznnjEtyixFGcvBkptqcNltEwqnxjRyqktHxhjCjHQEUsZSAqlgRtqIPvTNKTcceVvklIqgxTgcxGkzZUBG=xrjiflpixrgkbozbgbvnzmwvcaaxhkeobicfuogibjmtqjrnnamppujhjebgkkaxmnfmlttvnrbqrvzvmygibbnmlnvpbuxqatxfr"
SET "ZkbPnWpbbGUNHZKKwxJBKlWXQhcSmsYxHDdUZdzIpPbjOBRpgpqiYNkFyXBhRAokMMxfDwreaAPAGtpIXwPbKvjhuYtlZAlEVfwQ=gmttgdozpyfuoblqcdbyvjyfvpbeumdaywjhwgaoamijzypbqqjyahkqlwdhvwujeszhoDrcmbwcjfsidytckrpxfgdyzedetyaet"
SET "IFzqByQrdCGcxQCdhkpLtiQNerbAkwOtuSJBCKLyZPGboUdbhCqKbwpVQPSAIiaKPuuyeBUsjjSKEEBFLuHDcAjiGBLNHhkFARJf=wgebgqjcmkzpaibmgcnsxoshjpqrjfgcpcewovtvkozarnzfopwiaxerjjzonolqbkqguwhdckpxzvyzwpeslwwwmfugapwmmwaor"
SET "SbifMPXwzJDfiCvJwcrLsyTCLfuYIbGfZeIpPOgTlJVPYViScZLOevwmRBFeiDvAruJkFPhPodTgRAjBRQYzvdDIrYuhwNQGXggL=edutlugdlpynvqwjxhmqzmajeauzyzxlxstfvjkrcdexjdpgpjxxaymjymstzcwylvdzhdwdrsrftzweiivctypmwjfbxiejvlqgj"
SET "rPhLlqDvxMIzoYJXcmqWqmnOaDgUXEJcTPsMffrrjiKxiJkttUkTmSJGgMoUwSUTrisFdBwFYbpfGLiSSyPOxLXppSvvmuRFWySH=yrjrecnoprlgdktkbmyytdvstmcihwvbhgyofovbkswjqtvtdtvqrjcgzxapyuicozuphucrymxcmjxtobcznxrvoyksxeijhsvan"
SET "nQFUlVEixAkcSsFbdYevdiAmfmDpUOTDpwKAdibXVzLRxjJTobRJcYWERobGavptTusoLyQMnsfqHivXAqtiukEOoJhlcZkjyUYe=cqubidiglmbmgjkpneinsslfkqyhroycxegpbuvmypcerjiktzeywbkjjwwtalesqcgcijwydvilvrwuqnrtpbchecbdhxpmnexhj"
SET "pdfbcoGfnxJkOAKniJbNMnLAAnUMwjkecfRonWWfpGEBgrRbcplkkVJuXLEuazLtidefDDkIblbApKjtaWFOTYSMNlnczPdWnnuk=enkvmckgvyyobccbsyukvutizdqwjssajsnctmziymgqgldumgatobigHxjqvabdxynhqtljwqekwbapyhpqgwqabwycklsuuwwnh"
SET "MdBmGlNJJqIfanfKdWOovpbkrOflSHvZmTDFZfvLKCchYrEgiNkefbfOuVmiiXszECHHaAHVFFJIuXXUHDyrWzojKYiUGKcLeqVL=hviwugljjbczbnblhnzgdfuxqopcnqdxfxdnejavuzqioocrrelfqjtkdxzdbjmbeqelftxwivvhfpzdzbuvnqtjylgntomkjzlix"
SET "MthQeqYEcjflloECjlxNvOojEDaClcTpbThWGGnWOxSmYHYXcGqVYIGAciiMayqwaHeKlMFmmtuqLzdwBYghjTTTcTbKbXYbTzUg=HmpgUTxTmbicmTJZkOMukMoijHRkOuZPBySpywBZGRymOCUmpbHxriEqKahXTXXMZkwNyiyzTgYfHhgfDaHCkdvsqtBWaFWFpoVJJ"
SET "sMhVCNPjPweTYfmWvogCRngsNfcXzeOqRgQAqYNBDQgaDCfuNHHyBmjuKsWmuedrbHadKPCIAdHuisaUmNWmGvxjQwwghjySENmT=hMMbOGhTsQrCkHmFFnWQLTHyDutLEgcvPmHHnnKxqyVCLpfQnpZodDASAOeajeSSsEaKJAOnxLKyCAwRklldNMkAstlHRxmCLlHEJ"
SET "FZSPAbkGBbyHyBSiQnxRUUpQfqmbSOlyRmEbQCaluURUIAsKjvWZyaZsQyJnuWxBkuWWlejXiTaVkyFrUHPLdYHfpGJQDMaTiSCu=cpoxkwmtyglhmcljtinzwutqaitanvehpirjldwxaxgynzqqkbxzjagdmcjmypxuqzffualqpvecwbtpnowscpnavzavsfkvyahey"
SET "fyjBZrnDUsfRpiZKIgBBSuGBhWjMZJSVhJqTIIqDIBSKQuACSZdfNevFMRVVCtIoWsEHvOwfWhSZxemPcWRzdZJdjxzcdAfvDKVI=fndfsyoasbpjtgnlvfpqhknznmxwpbeaxhqapyavcagahhwwwtihmqgbkmslpupgesqwenpltsiyegdubpinanruidnoziosscnvq"
SET "nOMWanIjFKMAFPKOwCuBSNokhusfNgzGaCOwrDeLAZtLOtTbpGcKzTwYjyckMNfDfpfygnejeoWUXlzamEZxSkLmQrOMxFTtTxXF=jduimrqiatrpdewntmikknoebokyrslzebbsztajvsezsupdkktrkireqbcamirvrclupeedhxviqsbjyalrppovrrqwsypisgiri"
SET "yPONxNNoKtzgBjCCHXqbzbMdImJydJbsxLIMqHJuApVmVOAswsPUCKrpHLHlOhrmeiFNFFgmGZQSgKbJfUZUvRXnVCHuKfZngrzP=gxtywkgjkgkwwgwblccfbpqrezqedarigxrvvzklddfoetsaobadrneutxqyvqatsbrsekmmcqnjhpueeplnrhwujknwfactkzdrx"
SET "rXgQOrRKooRaAtBkSXYQRJQuvuqjBLDeYCsHLEbewqpMuyKTBzImOoRlfZUPDuspWXVfRfhjpkVErMrrnqrXNYgKbmWfBTHBScZH=cvntxdufnmtrhxedvemikqvuqlnjmjmeqpuozvymukkhnxywrlxqhgunvnjnpwutrrwtdvfnuneqrnjreaytcedlqtiuixlmhydjh"
SET "eCpgrhrlzTCDxRchxtnSHVZKRxByZYEMaWGzFNiisRHVOThmKpnFByEFSnWYPxXCjKFjwXaFiBRtJWzpHaqDeUzTPVcZGGQHDanX=uygbmarlnvhiyBoszokljqxnvnbikqxmbobdpsusabrbkcbicgfbrjqmdktixyezlowkqpbvkhknqpdvjbinustagkzswuhcoyswc"
SET "qjGKdYyKMTEimRekrvAqdKwzNghGPlHJUQgpELkkwLprKCmsjatzODXMNRTjNUVDlWEsmLbLqpGVspJuJUVDgVDbtkosVQXffmit=avzpamqzhspubxpmyekitgqhfqlkylzaephlopjqxzdemsewahdioaqcqhjcvmewkxxsxmdxokhumnrzrmzpmarzcdesylwpyjcev"
SET "WmgSNmVrIqNDRZSQKnKgyiuFAzqWaMOTbETzrAwARsgUDBYEErxJrIirPAlwFQlFuTHiFoMYeTJQOFSPtwbPfEWBzUEXKcTFCFGJ=WOIyCDqGKdfAeQpnxLfexUwrNbpZZTSJzvtRZGMssgrTyLquEtQWOVmpKhoDAeFKYCsEpfcBMTGlFtYWKgsgdRNhGhMBwsfRbUToN"
SET "elZvgmFTVQjLyvdKkpOzjfGxMdhUyFtgXHQBZVHIIqZoazpoLQcPWIRlvurGPvgSILpYAZxxHuFhgXSbvFQSIgGrEeppsReCRaob=iwelvrpagyroliejqhtzzkzhqaiwehmuxgvrqqbkfxebxwyegxpcjfjdodxhmxtsvfrkusvhqozpoqlnyz=udpmmnbpomqytwplsj"
SET "hsjKKRdLKTZpyIsxGPKFvFWcUGisxINCOmQLRexsuoVHAqynMqJNSBISKQrVaDJCeEHHCPNgotARDIgMRHYnIDjUtzVUjFFEuoDb=gnjbqoaxbkohsoqtdgskwxi7nvuakzbvjtqtwfxogtkmesjpmableugpnzulkklgxefubhgigcrluwjhxjjnaydozkuzeqywxgjst"
SET "HENbBWXfREZupZPVfsvXjMUXNkehTWWhHMUvtfmhrjgtacZgpGrufwHFkOVdDwuYDoVtudDnpIwPOcvhaTWxizuqYWiXYCdtbdQy=okiupxkpohfcbnlpabnfzwinkipkchspgrkwqwzumsrgvtspt5aetrjzissaqeivsjbqnmcrqeixytqrbwlzfihbdwvbjrdxxhxxd"
SET "lPEINMALfrfrJyqQANihZEQhQxvlAmmBkyBSdFaxMfurqHoSPTFJAfFzFRaaMzLFgVCEYnOxQGQkZaQmZGMufKLTzEiiKodFbGGg=xrzttfndpbbbmzomymlgbykkccefzoytvaghgfmgsqrsyfLaontkfshynhocoddbhhkqvrczchgutwkbgqulcoxhmakqsznmafzgl"
SET "wMmJVSNQmXkWmfpcPyRBXKNsotVCfecCWFQqeUAJiogEXJSJDYZTpWFuYhdQwIfHZbWpQpdPmkxtsfpdbQonUIwcpRvBBjJBXLwr=tfblsoxqbdppssmwwkmyklbzqoeuftkhdnzhraisqaormpeblcgdqeudxwseelqcnmbgqtubtzltooruifuinqbcfnolwovjgwadh"
SET "qqwQWMtcbnLNepIYXKggGXBNknMKvVmrfOwllivTcEytiPIrZzNNOUCLyDUUvdJVqEHFXDKDcuSjvYDdzrkAMeINdPHZAdSvmXuP=osatbflndghlhcjptrawzegpapujjphkqpihgavptktnqtazcqjicggbuxkawoibahzbumfpmzbsrpexiafeohazkoljqknrfmabz"
cls
@%tWtDFxVVNdburePMrddbWpadDxfqxyLEjneybCnXSlHVWZjUhwlTHOXLlZtcHCjhVRUvpAHmeCzcAIFrWxXQDHKpBZNKqyhCubwM:~53,1%%yEBnwgURQEtxNyJTQpBBOflLAlqjTJjNlGNQOInMnhmSxetZWSHstdrmhNWJdKqFvDmmAAxbJmHZdKvRUuGtVtqwLrYuvKdhFrwC:~26,1%%fyjBZrnDUsfRpiZKIgBBSuGBhWjMZJSVhJqTIIqDIBSKQuACSZdfNevFMRVVCtIoWsEHvOwfWhSZxemPcWRzdZJdjxzcdAfvDKVI:~20,1%%rPhLlqDvxMIzoYJXcmqWqmnOaDgUXEJcTPsMffrrjiKxiJkttUkTmSJGgMoUwSUTrisFdBwFYbpfGLiSSyPOxLXppSvvmuRFWySH:~7,1% %rPhLlqDvxMIzoYJXcmqWqmnOaDgUXEJcTPsMffrrjiKxiJkttUkTmSJGgMoUwSUTrisFdBwFYbpfGLiSSyPOxLXppSvvmuRFWySH:~7,1%%IFzqByQrdCGcxQCdhkpLtiQNerbAkwOtuSJBCKLyZPGboUdbhCqKbwpVQPSAIiaKPuuyeBUsjjSKEEBFLuHDcAjiGBLNHhkFARJf:~29,1%%IFzqByQrdCGcxQCdhkpLtiQNerbAkwOtuSJBCKLyZPGboUdbhCqKbwpVQPSAIiaKPuuyeBUsjjSKEEBFLuHDcAjiGBLNHhkFARJf:~29,1% && %nOMWanIjFKMAFPKOwCuBSNokhusfNgzGaC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HVWZjUhwlTHOXLlZtcHCjhVRUvpAHmeCzcAIFrWxXQDHKpBZNKqyhCubwM:~53,1%

 

 

슬라이싱 규칙으로 문제 풀어야할 것 같다. PATH 규칙보면..일단 학원가야해서 나중에 집와서 풀어야딩!

 

예술이 있다면..이게 아트 아닐까...ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

 

 

import re

# 원본 데이터 (key=value 형태로 저장된 부분)
data = '''
SET "vFKIqCfPYoAmeeWzfdvyZYfpahOFHCVyQUtAkTijwIPopWBKOMfruHFORhPjfwYyYKCEqxVzFWNMyyobMWMSiubUIryEWWNrCSRc=ulZiZYfKDHzPwKTOGzSxCQgAqLsLrlZgbVwLZOGrhfXGldhCPdOqLQNphEoyTNANLqJxIeMbOLbSksFJKIydnFKWZJqenBoJNWtVH"
SET "UVeVvzSzLQEcxjDZnrFCsuchulInGHnmANMmdAcpDxNXQWJYholJwnXMYMxyZtauzxbgDhInaTdlgaYsyxWnIlwrYCQQJWsXYRsD=zoicwbfhakobovodszjrrxdeqvebafhaqifmanmwkufv_xxafsqaewqujcuydhyiueqxjznojjjymdxzbkjwmjxhwgsmxwwxeowjx"
SET "yEBnwgURQEtxNyJTQpBBOflLAlqjTJjNlGNQOInMnhmSxetZWSHstdrmhNWJdKqFvDmmAAxbJmHZdKvRUuGtVtqwLrYuvKdhFrwC=wqjyigxsjrxoxklsfrpslduzqiccptkwckstuepzmceqphhpwahxihprcdxjkkqwtnsprrxlkiovwvkpboqonzhwgbscdjlnhshnz"
SET "xxsvbkKFHowVNWtNrPRXchaWfrCrujDbkvcfDbxjbIkXDIbLINmeklqdzreBaMtVJcGbjxJwyWdgYjSQgdhLncKcsoCxxATVAtCF=mfkssaiddyvphmrhjjfqnajxlpvzznyeyioqdfsaxxjgekgeiwqytoehidlfbwphykulufopfeetrzgywtljqghlxjhdryiliqxzi"
SET "KBLiGUYsFnWLvaMeVkaeVVeFlfZRcrxYJiTNHdQSoYVJZoBzuFEwJbSXqvmqbPMkTYAkGNMDxAhQkDvpbYEDdKXzWvlrdOJWEDZz=gnyddtjmzvewrvrevxuyfwifchjyyywolgpzejiugezcydnlgbszzefdemsauzcjirskkhcuaoeexlrlamc&fvyjwqwbbktsfraka"
SET "kdoBhHnCDXdNVjtRkfvBKxFTAjsSrKBUraMpMdHzZwhvXrcYnBgXsfXuhRYnPQPDtGYQYgfxYzNUJVSFvRtcyCWcqbsGdCHJAXLa=rRcNhyNuzsBmMeYrNIGrTXjVADyKGPkzyAldUMLtGLiduTnpRJBjVVBRGKczowrLQRtwRjpzzlPTTHlBDQLRiyEQVFkCSjfEWSyoZ"
SET "DEeyOMqmhwRKvfqBhHQOFDGUeojEBUbnpsjzoqwemaniNoHvVllaYbSXUtlPNljpSZiHdRqRgCGITclcKHURctCdJFvOmSaFHRnj=EPufDvJKIBjledZzYbLRyjpmQAjWeovjXsKfYWDUWyZHiTaQFMdavHoztshWYEDgZpfGRygbHnqgzRXhIervaKLldBZYYYDHZwNJQ"
SET "tWtDFxVVNdburePMrddbWpadDxfqxyLEjneybCnXSlHVWZjUhwlTHOXLlZtcHCjhVRUvpAHmeCzcAIFrWxXQDHKpBZNKqyhCubwM=zqrfrsyonazxvrdibliiwaojomjsuduthvxondskhlsrovavormrbevtdtgvijtatyvozqxgjsfzufwfsoamingchdiimkruwmihm"
SET "IlxoyxohrpuoOsHcHHncEkDsTlAEJVYgEfJnBLrDUcnYHvQORdVhnlGAyrNgWXnvBenZuPJDgdlVfWULPyCGVvVJhBepIqXmQgjm=zoastxwicghtpjlwydylanpycrkhxhsilftqnfbgouyvwjxbjsyjlaoxnjtyobvujkvpptmuqwjucpznqayghdufmptfAdvxjqhqh"
SET "FRSQpATyUQlAdsPAdhYeCrvPzxnrDDGVtBllWJQLBKNctsAKFhxIeQUyOdfoSssKbzUIbFIHARwhMtoIxeWInAfwyhEdNYxLqhCl=vdguqkkabnsnfniekhqeyqbjcnynzikoucoqslyqawwttwktfstjFqwqlttvdjixuuptkvhdbebsnyxqcvxcmphcscbxmqdpsfppw"
SET "RVcqumfMYAgpDDaWiyvIJzoznMApfhcgHQbLZPsrLrFoSsLRjLonERbRDZHIKDzFlLEVFROxrXbXhzJpPUKbXudIuYzZjUmfowQZ=bodtpvunlkgbcveipypsekzaqirqwlaNubhganeoubdvnspldzorzohbiaqgowgxreafuantpkllxlwrvlqfzudcqgyrgouemwhzf"
SET "HznwrifJfZLTGNMOnulEMVmBNjjaNLMlwCBabKQLYjoknzpyqVgpejFowmSlUhKbgFvyyHhzpjxmzkRHvbdgOiodNPKMtzFnsxOE=orpwnqvjfdnxqebethuuwfnugllghszkrofqanyiowxbbpfkxhnvlahevgnxsjrzqvfrwfbveuwjvqjnkzhtzcjokokgddGdpreeb"
SET "CaxMjThxclwPquSYFCweNliroLExzeyPfCHWhokpLGvOAORIPoIowIKxdbGxEbtlrNcUOOOEISJqMhOdZEUxhJOvjSMUrAxXejAl=WfWToAoquCtYTEmyvVDqNMedSGJMLDJbxIAiNYgojtGrgWswEpzbyKclpEwcyrFdZszhjpjFzXgmMVBLQKKzxfkMQVnDlTlTpZSXp"
SET "CoFdqIPklsMjEnaTnSznnjEtyixFGcvBkptqcNltEwqnxjRyqktHxhjCjHQEUsZSAqlgRtqIPvTNKTcceVvklIqgxTgcxGkzZUBG=xrjiflpixrgkbozbgbvnzmwvcaaxhkeobicfuogibjmtqjrnnamppujhjebgkkaxmnfmlttvnrbqrvzvmygibbnmlnvpbuxqatxfr"
SET "ZkbPnWpbbGUNHZKKwxJBKlWXQhcSmsYxHDdUZdzIpPbjOBRpgpqiYNkFyXBhRAokMMxfDwreaAPAGtpIXwPbKvjhuYtlZAlEVfwQ=gmttgdozpyfuoblqcdbyvjyfvpbeumdaywjhwgaoamijzypbqqjyahkqlwdhvwujeszhoDrcmbwcjfsidytckrpxfgdyzedetyaet"
SET "IFzqByQrdCGcxQCdhkpLtiQNerbAkwOtuSJBCKLyZPGboUdbhCqKbwpVQPSAIiaKPuuyeBUsjjSKEEBFLuHDcAjiGBLNHhkFARJf=wgebgqjcmkzpaibmgcnsxoshjpqrjfgcpcewovtvkozarnzfopwiaxerjjzonolqbkqguwhdckpxzvyzwpeslwwwmfugapwmmwaor"
SET "SbifMPXwzJDfiCvJwcrLsyTCLfuYIbGfZeIpPOgTlJVPYViScZLOevwmRBFeiDvAruJkFPhPodTgRAjBRQYzvdDIrYuhwNQGXggL=edutlugdlpynvqwjxhmqzmajeauzyzxlxstfvjkrcdexjdpgpjxxaymjymstzcwylvdzhdwdrsrftzweiivctypmwjfbxiejvlqgj"
SET "rPhLlqDvxMIzoYJXcmqWqmnOaDgUXEJcTPsMffrrjiKxiJkttUkTmSJGgMoUwSUTrisFdBwFYbpfGLiSSyPOxLXppSvvmuRFWySH=yrjrecnoprlgdktkbmyytdvstmcihwvbhgyofovbkswjqtvtdtvqrjcgzxapyuicozuphucrymxcmjxtobcznxrvoyksxeijhsvan"
SET "nQFUlVEixAkcSsFbdYevdiAmfmDpUOTDpwKAdibXVzLRxjJTobRJcYWERobGavptTusoLyQMnsfqHivXAqtiukEOoJhlcZkjyUYe=cqubidiglmbmgjkpneinsslfkqyhroycxegpbuvmypcerjiktzeywbkjjwwtalesqcgcijwydvilvrwuqnrtpbchecbdhxpmnexhj"
SET "pdfbcoGfnxJkOAKniJbNMnLAAnUMwjkecfRonWWfpGEBgrRbcplkkVJuXLEuazLtidefDDkIblbApKjtaWFOTYSMNlnczPdWnnuk=enkvmckgvyyobccbsyukvutizdqwjssajsnctmziymgqgldumgatobigHxjqvabdxynhqtljwqekwbapyhpqgwqabwycklsuuwwnh"
SET "MdBmGlNJJqIfanfKdWOovpbkrOflSHvZmTDFZfvLKCchYrEgiNkefbfOuVmiiXszECHHaAHVFFJIuXXUHDyrWzojKYiUGKcLeqVL=hviwugljjbczbnblhnzgdfuxqopcnqdxfxdnejavuzqioocrrelfqjtkdxzdbjmbeqelftxwivvhfpzdzbuvnqtjylgntomkjzlix"
SET "MthQeqYEcjflloECjlxNvOojEDaClcTpbThWGGnWOxSmYHYXcGqVYIGAciiMayqwaHeKlMFmmtuqLzdwBYghjTTTcTbKbXYbTzUg=HmpgUTxTmbicmTJZkOMukMoijHRkOuZPBySpywBZGRymOCUmpbHxriEqKahXTXXMZkwNyiyzTgYfHhgfDaHCkdvsqtBWaFWFpoVJJ"
SET "sMhVCNPjPweTYfmWvogCRngsNfcXzeOqRgQAqYNBDQgaDCfuNHHyBmjuKsWmuedrbHadKPCIAdHuisaUmNWmGvxjQwwghjySENmT=hMMbOGhTsQrCkHmFFnWQLTHyDutLEgcvPmHHnnKxqyVCLpfQnpZodDASAOeajeSSsEaKJAOnxLKyCAwRklldNMkAstlHRxmCLlHEJ"
SET "FZSPAbkGBbyHyBSiQnxRUUpQfqmbSOlyRmEbQCaluURUIAsKjvWZyaZsQyJnuWxBkuWWlejXiTaVkyFrUHPLdYHfpGJQDMaTiSCu=cpoxkwmtyglhmcljtinzwutqaitanvehpirjldwxaxgynzqqkbxzjagdmcjmypxuqzffualqpvecwbtpnowscpnavzavsfkvyahey"
SET "fyjBZrnDUsfRpiZKIgBBSuGBhWjMZJSVhJqTIIqDIBSKQuACSZdfNevFMRVVCtIoWsEHvOwfWhSZxemPcWRzdZJdjxzcdAfvDKVI=fndfsyoasbpjtgnlvfpqhknznmxwpbeaxhqapyavcagahhwwwtihmqgbkmslpupgesqwenpltsiyegdubpinanruidnoziosscnvq"
SET "nOMWanIjFKMAFPKOwCuBSNokhusfNgzGaCOwrDeLAZtLOtTbpGcKzTwYjyckMNfDfpfygnejeoWUXlzamEZxSkLmQrOMxFTtTxXF=jduimrqiatrpdewntmikknoebokyrslzebbsztajvsezsupdkktrkireqbcamirvrclupeedhxviqsbjyalrppovrrqwsypisgiri"
SET "yPONxNNoKtzgBjCCHXqbzbMdImJydJbsxLIMqHJuApVmVOAswsPUCKrpHLHlOhrmeiFNFFgmGZQSgKbJfUZUvRXnVCHuKfZngrzP=gxtywkgjkgkwwgwblccfbpqrezqedarigxrvvzklddfoetsaobadrneutxqyvqatsbrsekmmcqnjhpueeplnrhwujknwfactkzdrx"
SET "rXgQOrRKooRaAtBkSXYQRJQuvuqjBLDeYCsHLEbewqpMuyKTBzImOoRlfZUPDuspWXVfRfhjpkVErMrrnqrXNYgKbmWfBTHBScZH=cvntxdufnmtrhxedvemikqvuqlnjmjmeqpuozvymukkhnxywrlxqhgunvnjnpwutrrwtdvfnuneqrnjreaytcedlqtiuixlmhydjh"
SET "eCpgrhrlzTCDxRchxtnSHVZKRxByZYEMaWGzFNiisRHVOThmKpnFByEFSnWYPxXCjKFjwXaFiBRtJWzpHaqDeUzTPVcZGGQHDanX=uygbmarlnvhiyBoszokljqxnvnbikqxmbobdpsusabrbkcbicgfbrjqmdktixyezlowkqpbvkhknqpdvjbinustagkzswuhcoyswc"
SET "qjGKdYyKMTEimRekrvAqdKwzNghGPlHJUQgpELkkwLprKCmsjatzODXMNRTjNUVDlWEsmLbLqpGVspJuJUVDgVDbtkosVQXffmit=avzpamqzhspubxpmyekitgqhfqlkylzaephlopjqxzdemsewahdioaqcqhjcvmewkxxsxmdxokhumnrzrmzpmarzcdesylwpyjcev"
SET "WmgSNmVrIqNDRZSQKnKgyiuFAzqWaMOTbETzrAwARsgUDBYEErxJrIirPAlwFQlFuTHiFoMYeTJQOFSPtwbPfEWBzUEXKcTFCFGJ=WOIyCDqGKdfAeQpnxLfexUwrNbpZZTSJzvtRZGMssgrTyLquEtQWOVmpKhoDAeFKYCsEpfcBMTGlFtYWKgsgdRNhGhMBwsfRbUToN"
SET "elZvgmFTVQjLyvdKkpOzjfGxMdhUyFtgXHQBZVHIIqZoazpoLQcPWIRlvurGPvgSILpYAZxxHuFhgXSbvFQSIgGrEeppsReCRaob=iwelvrpagyroliejqhtzzkzhqaiwehmuxgvrqqbkfxebxwyegxpcjfjdodxhmxtsvfrkusvhqozpoqlnyz=udpmmnbpomqytwplsj"
SET "hsjKKRdLKTZpyIsxGPKFvFWcUGisxINCOmQLRexsuoVHAqynMqJNSBISKQrVaDJCeEHHCPNgotARDIgMRHYnIDjUtzVUjFFEuoDb=gnjbqoaxbkohsoqtdgskwxi7nvuakzbvjtqtwfxogtkmesjpmableugpnzulkklgxefubhgigcrluwjhxjjnaydozkuzeqywxgjst"
SET "HENbBWXfREZupZPVfsvXjMUXNkehTWWhHMUvtfmhrjgtacZgpGrufwHFkOVdDwuYDoVtudDnpIwPOcvhaTWxizuqYWiXYCdtbdQy=okiupxkpohfcbnlpabnfzwinkipkchspgrkwqwzumsrgvtspt5aetrjzissaqeivsjbqnmcrqeixytqrbwlzfihbdwvbjrdxxhxxd"
SET "lPEINMALfrfrJyqQANihZEQhQxvlAmmBkyBSdFaxMfurqHoSPTFJAfFzFRaaMzLFgVCEYnOxQGQkZaQmZGMufKLTzEiiKodFbGGg=xrzttfndpbbbmzomymlgbykkccefzoytvaghgfmgsqrsyfLaontkfshynhocoddbhhkqvrczchgutwkbgqulcoxhmakqsznmafzgl"
SET "wMmJVSNQmXkWmfpcPyRBXKNsotVCfecCWFQqeUAJiogEXJSJDYZTpWFuYhdQwIfHZbWpQpdPmkxtsfpdbQonUIwcpRvBBjJBXLwr=tfblsoxqbdppssmwwkmyklbzqoeuftkhdnzhraisqaormpeblcgdqeudxwseelqcnmbgqtubtzltooruifuinqbcfnolwovjgwadh"
SET "qqwQWMtcbnLNepIYXKggGXBNknMKvVmrfOwllivTcEytiPIrZzNNOUCLyDUUvdJVqEHFXDKDcuSjvYDdzrkAMeINdPHZAdSvmXuP=osatbflndghlhcjptrawzegpapujjphkqpihgavptktnqtazcqjicggbuxkawoibahzbumfpmzbsrpexiafeohazkoljqknrfmabz"
cls'''

# 데이터를 분리하여 딕셔너리로 변환
result_dict = {}
for line in data.strip().splitlines():
    line = line.replace('SET "', '').strip('"')
    if '=' in line:
        key, value = line.split('=', 1)
        result_dict[key] = value

# 슬라이싱 규칙이 포함된 데이터
raw_data = """
@%tWtDFxVVNdburePMrddbWpadD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JXcmqWqmnOaDgUXEJcTPsMffrrjiKxiJkttUkTmSJGgMoUwSUTrisFdBwFYbpfGLiSSyPOxLXppSvvmuRFWySH:~7,1%%qjGKdYyKMTEimRekrvAqdKwzNghGPlHJUQgpELkkwLprKCmsjatzODXMNRTjNUVDlWEsmLbLqpGVspJuJUVDgVDbtkosVQXffmit:~77,1%%yPONxNNoKtzgBjCCHXqbzbMdImJydJbsxLIMqHJuApVmVOAswsPUCKrpHLHlOhrmeiFNFFgmGZQSgKbJfUZUvRXnVCHuKfZngrzP:~0,1%) && %qqwQWMtcbnLNepIYXKggGXBNknMKvVmrfOwllivTcEytiPIrZzNNOUCLyDUUvdJVqEHFXDKDcuSjvYDdzrkAMeINdPHZAdSvmXuP:~15,1%%FZSPAbkGBbyHyBSiQnxRUUpQfqmbSOlyRmEbQCaluURUIAsKjvWZyaZsQyJnuWxBkuWWlejXiTaVkyFrUHPLdYHfpGJQDMaTiSCu:~24,1%%wMmJVSNQmXkWmfpcPyRBXKNsotVCfecCWFQqeUAJiogEXJSJDYZTpWFuYhdQwIfHZbWpQpdPmkxtsfpdbQonUIwcpRvBBjJBXLwr:~27,1%%SbifMPXwzJDfiCvJwcrLsyTCLfuYIbGfZeIpPOgTlJVPYViScZLOevwmRBFeiDvAruJkFPhPodTgRAjBRQYzvdDIrYuhwNQGXggL:~33,1%%tWtDFxVVNdburePMrddbWpadDxfqxyLEjneybCnXSlHVWZjUhwlTHOXLlZtcHCjhVRUvpAHmeCzcAIFrWxXQDHKpBZNKqyhCubwM:~53,1%

"""



# 정규표현식을 사용하여 키, 시작 인덱스, 길이 추출
pattern = r"@?%?([\w]+):~(\d+),(\d+)"
matches = re.findall(pattern, raw_data)

print("Matches (Slicing Rules):", matches)


# 플래그 생성
flag = "DH{"
for key, start, length in matches:
    if key in result_dict:
        start, length = int(start), int(length)
        flag += result_dict[key][start:start+length]
    else:
        print(f"Error: Key '{key}' not found in data.")

flag += "}"
print("Extracted Flag:", flag)

 

 

Extracted Flag: DH{echooffifFLAG==BA7cH_cAN_hiDe_u5iNg_textechocorrectelseechowrongpause}
@echo off
set FLAG=BA7cH_cAN_hiDe_u5iNg_text
if "%FLAG%"=="BA7cH_cAN_hiDe_u5iNg_text" (
    echo correct
) else (
    echo wrong
)
pause

 

correct 굳 ㅋㅋㅋㅋㅋ

 

DH{BA7cH_cAN_hiDe_u5iNg_text}