블로그 이미지
Flying Mr.Cheon youGom

Recent Comment»

Recent Post»

Recent Trackback»

« 2024/5 »
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 31

.NET PublicKeyToken

보안/리버싱 | 2020. 4. 24. 20:35 | Posted by youGom

c# 실행파일 하나 디컴파일 하다, 잘 안되길래 살펴보다 보니 publickeytoken 이라는 걸 활용하는 것 같아서 살펴봄.

어떻게 만들어지는지 참조해놓고, 이 걸 이용해서 풀어야 하는건지 살펴볼 예정,

 

--------------------------------------------------------------------

 

echo 'csharp code, bla bla bla' > main.cs

 

sn -k first.key

sn -p first.key first_pub.key

 

sn -tp first_pub.key

>> public key token ......

 

csc /keyfile:first.key /out:temp.dll /t:library main.cs

>> make temp.dll

 

ildasm /out:info.txt temp.dll

>> view info.txt

 

csc /r:temp.dll main.cs

>> make main.exe

 

ildasm /out:final.txt main.exe

>> view final.txt

 

--------------------------------------------------------------------

 

아래 영상은 검색하다 찾은 영상,

 

 

 

 

: