-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert pF
commands to the rzshell
#3071
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XVilka
requested review from
wargio,
kazarmy,
thestr4ng3r and
ret2libc
as code owners
October 7, 2022 16:35
wargio
requested changes
Oct 7, 2022
ret2libc
reviewed
Oct 7, 2022
wargio
force-pushed
the
asan-print-rzshell2
branch
from
October 9, 2022 11:33
8d2dbe7
to
119fdc4
Compare
XVilka
commented
Oct 9, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[XX] db/cmd/cmd_pFb pFb.test simple protobuf (verbose) Resolved
click me to expand
[XX] db/cmd/cmd_pFb pFb.test simple protobuf (verbose)
RZ_NOPLUGINS=1 /usr/bin/rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc 'wx 0a 2e 0a 07 56 69 6e 63 65 6e 74 10 09 1a 10 56 69 6e 63 65 6e 74 40 74 65 73 74 2e 63 6f 6d 22 0f 0a 0b 31 35 30 31 31 31 31 31 31 31 31 10 02
pFbv
' =
-- stdout
--- expected
+++ actual
@@ -1,9 +1,33 @@
-1 [LEN_DELIM] {
- 1 [LEN_DELIM] : "Vincent"
- 2 [VARINT] : 9 | 9
- 3 [LEN_DELIM] : "[email protected]"
- 4 [LEN_DELIM] {
- 1 [LEN_DELIM] : "15011111111"
- 2 [VARINT] : 2 | 2
- }
-}
+Usage: p[=68abcdDfiImrstuxz] [arg|len] [@addr]
+| p[b|B|xb] [len] ([S]) bindump N bits skipping S bytes
+| p[iI][df] [len] print N ops/bytes (f=func) (see pi? and pdq)
+| p[kK] [len] print key in randomart (K is for mosaic)
+| p-[?][jh] [mode] bar|json|histogram blocks (mode: e?search.in)
+| p2 [len] 8x8 2bpp-tiles
+| p6[de] [len] base64 decode/encode
+| p8[?][j] [len] 8bit hexpair list of bytes
+| p=[?][bep] [N] [L] [b] show entropy/printable chars/chars bars
+| pa[edD] [arg] pa:assemble pa[dD]:disasm or pae: esil from hex
+| pA[n_ops] show n_ops address and type
+| pb[?] [n] bitstream of N bits
+| pB[?] [n] bitstream of N bytes
+| pc[?][p] [len] output C (or python) format
+| pC[aAcdDxw] [rows] print disassembly in columns (see hex.cols and pdq)
+| pd[?] [sz] [a] [b] disassemble N opcodes (pd) or N bytes (pD)
+| pf[?][.nam] [fmt] print formatted data (pf.name, pf.name $<expr>)
+| pF[?][apx] print asn1, pkcs7 or x509
+| pg[?][x y w h] [cmd] create new visual gadget or print it (see pg? for details)
+| ph[?][=|hash] ([len]) calculate hash for a block
+| pi[?][bdefrj] [num] print instructions
+| pI[?][iI][df] [len] print N instructions/bytes (f=func)
+| pj[?] [len] print as indented JSON
+| pm[?] [magic] print libmagic data (see pm? and /m?)
+| po[?] hex print operation applied to block (see po?)
+| pp[?][sz] [len] print patterns, see pp? for more help
+| pr[?][glx] [len] print N raw bytes (in lines or hexblocks, 'g'unzip)
+| ps[?][pwz] [len] print pascal/wide/zero-terminated strings
+| pt[?][dn] [len] print different timestamps
+| pu[?][w] [len] print N url encoded bytes (w=wide)
+| pv[?][jh] [mode] show variable/pointer/value in memory
+| px[?][owq] [len] hexdump of N bytes (o=octal, w=32bit, q=64bit)
+| pz[?] [len] print zoom view (see pz? for help)
[XX] db/cmd/cmd_pFb pFb.test simple protobuf
RZ_NOPLUGINS=1 /usr/bin/rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc 'wx 0a 2e 0a 07 56 69 6e 63 65 6e 74 10 09 1a 10 56 69 6e 63 65 6e 74 40 74 65 73 74 2e 63 6f 6d 22 0f 0a 0b 31 35 30 31 31 31 31 31 31 31 31 10 02
pFb
' =
-- stdout
--- expected
+++ actual
@@ -1,9 +1,9 @@
-1 {
- 1: "Vincent"
- 2: 9 | 9
- 3: "[email protected]"
- 4 {
- 1: "15011111111"
- 2: 2 | 2
+1 [LEN_DELIM] {
+ 1 [LEN_DELIM] : "Vincent"
+ 2 [VARINT] : 9 | 9
+ 3 [LEN_DELIM] : "[email protected]"
+ 4 [LEN_DELIM] {
+ 1 [LEN_DELIM] : "15011111111"
+ 2 [VARINT] : 2 | 2
}
}
XVilka
commented
Oct 9, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Your checklist for this pull request
Detailed description
Convert
pF
commands to rzshellTest plan
CI is green.
Closing issues
Partially addresses #1590