load without any analysis (file header at offset 0x0): r2 -n /path/to/file
- analyze all:
aa
- show sections:
iS
- list functions:
afl
- list imports:
ii
- list entrypoints:
ie
- seek to function:
s sym.main
package util | |
type IteratorCallback = func(start int, v []interface{}) error | |
type BatchIterator struct { | |
batchSize int | |
} | |
func NewBatchIterator(batchSize uint) BatchIterator { | |
return BatchIterator{ |
; Infinite loop (e9 fd ff) | |
jmp start | |
message db 'Hello yoba' ; 10 bytes | |
start: | |
mov ah, 0x0e ; tty mode | |
mov cx, 0 | |
mov bx, message |
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"sync" | |
"syscall" |
package main | |
import ( | |
"fmt" | |
"unsafe" | |
) | |
func main() { | |
var mem [16*32]byte |
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
"time" | |
) | |
func main() { |
package main | |
import "fmt" | |
type vec3 [3]byte | |
type vec2 [2]uint | |
func rgb(r, g, b byte) vec3 { | |
return vec3{r, g, b} | |
} |
db.getCollection('businessObjects').find({ | |
'fields': { | |
'$all': [ | |
{'$elemMatch': { name: 'IncidentID', value: {'$ne': '12'} } }, | |
{'$elemMatch': {fieldId: '252b836fc72c4149915053ca1131d138', value: '123123'}}, | |
] | |
} | |
}) |
git branch | grep -v "master" | xargs git branch -D |
package worker | |
import ( | |
"fmt" | |
"github.com/go-errors/errors" | |
"io" | |
"os" | |
"sync" | |
"time" | |
) |