Пример #1
0
        public override string RenderHit(AddressSearchHit hit)
        {
            var rdr   = hit.Program.CreateImageReader(hit.Address);
            var bytes = rdr.ReadBytes(hit.Length);

            return(encoding.GetString(bytes.ToArray()));
        }
Пример #2
0
 public override string RenderHit(AddressSearchHit hit)
 {
     try
     {
         var dasm = hit.Program.CreateDisassembler(hit.Program.Architecture, hit.Address);
         return(string.Join("; ", dasm.Take(4).Select(inst => inst.ToString().Replace('\t', ' '))));
     }
     catch
     {
         return("<invalid>");
     }
 }
Пример #3
0
        public override string RenderHit(AddressSearchHit hit)
        {
            var rdr = hit.Program.CreateImageReader(hit.Address);
            var sb  = new StringBuilder();
            int cb  = 0;

            while (rdr.IsValid)
            {
                var ch = rdr.ReadByte();
                if (ch == 0 || cb >= 16)
                {
                    break;
                }
                sb.AppendFormat("{0:X2} ", (uint)ch);
                ++cb;
            }
            return(sb.ToString());
        }
Пример #4
0
 public abstract string RenderHit(AddressSearchHit hit);