Skip to content

Commit

Permalink
align the number of exclamation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmru committed Jun 3, 2020
1 parent 1df1a3a commit 26b413f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func Filter(pid string, targetVal string, prevFounds []Found) ([]Found, error) {
}
}
foundAddrs, _ := memory.FindDataInAddrRanges(memPath, targetBytes, addrRanges)
fmt.Printf("Found: %d!!!\n", len(foundAddrs))
fmt.Printf("Found: %d!!\n", len(foundAddrs))
if len(foundAddrs) < 10 {
for _, v := range foundAddrs {
fmt.Printf("Address: 0x%x\n", v)
Expand Down
8 changes: 4 additions & 4 deletions pkg/memory/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func FindString(memPath string, targetVal string, addrRanges [][2]int) ([]int, e
targetBytes, _ := converter.StringToBytes(targetVal)
fmt.Printf("Target Value: %s(%v)\n", targetVal, targetBytes)
foundAddrs, _ := FindDataInAddrRanges(memPath, targetBytes, addrRanges)
fmt.Printf("Found: %d!\n", len(foundAddrs))
fmt.Printf("Found: %d!!\n", len(foundAddrs))
if len(foundAddrs) < 10 {
for _, v := range foundAddrs {
fmt.Printf("Address: 0x%x\n", v)
Expand All @@ -126,7 +126,7 @@ func FindWord(memPath string, targetVal string, addrRanges [][2]int) ([]int, err
}
fmt.Printf("Target Value: %s(%v)\n", targetVal, targetBytes)
foundAddrs, _ := FindDataInAddrRanges(memPath, targetBytes, addrRanges)
fmt.Printf("Found: %d!\n", len(foundAddrs))
fmt.Printf("Found: %d!!\n", len(foundAddrs))
if len(foundAddrs) < 10 {
for _, v := range foundAddrs {
fmt.Printf("Address: 0x%x\n", v)
Expand All @@ -144,7 +144,7 @@ func FindDword(memPath string, targetVal string, addrRanges [][2]int) ([]int, er
}
fmt.Printf("Target Value: %s(%v)\n", targetVal, targetBytes)
foundAddrs, _ := FindDataInAddrRanges(memPath, targetBytes, addrRanges)
fmt.Printf("Found: %d!\n", len(foundAddrs))
fmt.Printf("Found: %d!!\n", len(foundAddrs))
if len(foundAddrs) < 10 {
for _, v := range foundAddrs {
fmt.Printf("Address: 0x%x\n", v)
Expand All @@ -162,7 +162,7 @@ func FindQword(memPath string, targetVal string, addrRanges [][2]int) ([]int, er
}
fmt.Printf("Target Value: %s(%v)\n", targetVal, targetBytes)
foundAddrs, _ := FindDataInAddrRanges(memPath, targetBytes, addrRanges)
fmt.Printf("Found: %d!\n", len(foundAddrs))
fmt.Printf("Found: %d!!\n", len(foundAddrs))
if len(foundAddrs) < 10 {
for _, v := range foundAddrs {
fmt.Printf("Address: 0x%x\n", v)
Expand Down

0 comments on commit 26b413f

Please sign in to comment.