node/lib/metasm/samples/dbg-plugins/heapscan/heapscan.rb
def scan_chunks_xr
		@xrchunksto = {}
		@xrchunksfrom = {}
		@chunks.each { |a, l|
			pagecache(a, l).unpack('L*').each { |p|
				if @chunks[p]
					(@xrchunksto[a] ||= []) << p
					(@xrchunksfrom[p] ||= []) << a
				end
			}
		}
	end
# 4-byte xor key to decrypt the chunk headers
4-byte xor key to decrypt the chunk headers
4 - byte xor key to decrypt the chunk headers
def scan_chunks_xr
		@xrchunksto = {}
		@xrchunksfrom = {}
		@chunks.each { |a, l|
			pagecache(a, l).unpack('L*').each { |p|
				if @chunks[p]
					(@xrchunksto[a] ||= []) << p
					(@xrchunksfrom[p] ||= []) << a
				end
			}
		}
	end
def scan_chunks_xr @xrchunksto = { } @xrchunksfrom = { } @chunks . each { | a , l | pagecache ( a , l ) . unpack ( 'L*' ) . each { | p | if @chunks [ p ] ( @xrchunksto [ a ] ||= [ ] ) << p ( @xrchunksfrom [ p ] ||= [ ] ) << a end } } end
4-byte xor key to decrypt the chunk headers
4 - byte xor key to decrypt the chunk headers