예제 #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);