首页 > 其他分享 >nc这个工具用于伪造c2服务器 做c2初始连接的抓包分析实在是太tm好用了!必要时候配合APATEDNS

nc这个工具用于伪造c2服务器 做c2初始连接的抓包分析实在是太tm好用了!必要时候配合APATEDNS

时间:2022-10-01 17:55:55浏览次数:481  
标签:malware nc 120.150 tm DNS c2 my 10.150

DNS Spoofing with APATEDNS

20th February 2015 Wannes.Colman Leave a comment

If you  quickly want to find out what the malware in your sandbox is resolving, you can use ApateDNS. This free tool will listen for outgoing DNS requests and is able to spoof the answer.

sandbox-meme-catIn my example I started the ApateDNS tool in my sandbox and set the DNS reply IP to my secondary machine -10.150.120.150.
I captured a DNS request to “www.google.be” and its DNS response address was spoofed to 10.150.120.150. This way the malware will start its connection pointed to this IP address -10.150.120.150.

Capture2Next I’ll set up the “TCP/IP Swiss army knife” – netcat.
On my secondary machine, the one with IP 10.150.120.150, I started a netcat listener on port 80.  ==》场景:你发现某个恶意软件在链接c2服务器的80端口,则你使用如下方式伪造一个c2!

 ~ $ sudo nc -l 80

If the malware then opens an HTTP connection to “www.google.be”, I will receive its HTTP requests.
example:

GET / HTTP/1.1
Accept: */*
Accept-Language: nl-be
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Host: www.google.be
Connection: Keep-Alive
Cookie: PREF=ID=815......:

This might be fast way to find out what connections your malware is trying to make.

(netcat is also available for windows)

标签:malware,nc,120.150,tm,DNS,c2,my,10.150
From: https://www.cnblogs.com/bonelee/p/16747501.html

相关文章

  • CF1738 E. Balance Addicts
    https://codeforc.es/contest/1738/problem/E考虑回文的构造最典的一定是2边向中间不断扩展的形式,这启发我们从这个方面着手思考。考虑\(f(l,r)\)为区间\([l,r]\)......
  • 读论文《IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learn
    论文地址:https://arxiv.org/pdf/1802.01561v2.pdf  =========================================   ========================================= ......
  • IfcElectricResistanceMeasure
    IfcElectricResistanceMeasure类型定义IfcElectricResistanceMeasure是电阻的测量单位。通常测量单位为欧姆(V/A)。类型:REALIFC2x中的新类型。 EXPRESSSpecificatio......
  • html 用div放入两张图片对应下面文字
    效果图好久没打前端样式哈哈哈都忘了<style>.rzk-img{margin:0auto;width:50%;height:200px;}.rzk-img.imag-1{......
  • HTML入门笔记
    HTML入门笔记目录 一、HTML简介1、HTML是什么?2、什么是HTML标签?二、HTML文档结构1、HTML基本结构2、文档类型声明标签3、lang语言属性4、字符集与编码三、HTML基础......
  • 将侧边栏制成inclusion_tag
    在开发过程中,像侧边栏这种功能的版块,我们在很多页面都需要使用到的时候,我们则需要在视图函数中书写重复的代码,这样很繁琐,我们可以将侧边栏制成inclusion_tag,后面我们需要......
  • 实战一:Breast Cancer Wisconsin (Diagnostic)
    1importpandasaspd#pandas是一个快速、强大、灵活和易于使用的开源数据分析和操作工具。2fromsklearn.preprocessingimportLabelEncoder#该类使用0到n_cla......
  • RabbitMQ(二):交换机
    前言学习自bili尚硅谷-​​RabbitMQ​​发布确认之前的消息应答,队列持久化是为了保证->消息从rabbitmq队列到消费者的过程中不会丢失;消息持久化则是为了保证->消息从生......
  • ERROR: cannot verify nih.at’s certificate, issued by “/C=US/O=Let‘s Encrypt/C
    https://blog.csdn.net/qq_35043734/article/details/125374843?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166458854816782417033772%2522%252C%2522scm%......
  • nohup训练pytorch模型时的报错以及tmux的简单使用
    问题:在使用nohup命令后台训练pytorch模型时,关闭ssh窗口,有时会遇到下面报错:WARNING:torch.distributed.elastic.agent.server.api:Received1deathsignal,shuttingdo......