Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2. char query[200];
  3. char ips_s[16];
  4. char ips_d[16];
  5. snprintf(ips_s,sizeof ips_s,"%u.%u.%u.%u" ,(ip->daddr & 0x000000ff)
  6. ,(ip->daddr & 0x0000ff00) >> 8
  7. ,(ip->daddr & 0x00ff0000) >> 16
  8. ,(ip->daddr & 0xff000000) >> 24);
  9. snprintf(ips_d,sizeof ips_d,"%u.%u.%u.%u" , (ip->daddr & 0x000000ff)
  10. ,(ip->daddr & 0x0000ff00) >> 8
  11. ,(ip->daddr & 0x00ff0000) >> 16
  12. ,(ip->daddr & 0xff000000) >> 24);
  13. sprintf(query,"icmp && icmp[icmptype] = 3 && icmp[icmpcode] = 3 && src host %s && dst host %s",
  14. ips_d,
  15. ips_s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement