add $RANDOM debashifying to readme
This commit is contained in:
parent
a1b2d74940
commit
9608f2556b
2 changed files with 10 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -56,7 +56,7 @@ $(ODIR)/%.o: $(SRCDIR)/%.c $(DEPS)
|
|||
$(ODIR)/%.o: $(SRCDIR)/%.cpp $(DEPS)
|
||||
$(CC) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
$(ODIR)/main.o: $(SRCDIR)/main.cpp $(DEPS) $(IDIR)/g_version.h
|
||||
$(ODIR)/options.o: $(SRCDIR)/options.cpp $(DEPS) $(IDIR)/g_version.h
|
||||
$(CC) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
$(ODIR)/shellcode.o: $(SRCDIR)/shellcode.cpp $(DEPS) $(IDIR)/g_shellcode.h
|
||||
|
|
|
|||
10
README.md
10
README.md
|
|
@ -68,6 +68,7 @@ The following bash features can be debashified:
|
|||
- `>&`, `&>` and `&>>` output redirects
|
||||
- `[[ ]]` conditions
|
||||
- indexed arrays and associative arrays (+ their `declare` and `typeset` definitions)
|
||||
- `$RANDOM`
|
||||
|
||||
### Advantages
|
||||
|
||||
|
|
@ -77,6 +78,13 @@ The following bash features can be debashified:
|
|||
|
||||
### Limitations
|
||||
|
||||
#### $RANDOM
|
||||
|
||||
Debashifying of $RANDOM assumes /dev/urandom exists and provides proper randomness. <br>
|
||||
The debashified $RANDOM generates numbers in range 0:65535 instead of 0:32767.
|
||||
|
||||
Debashified calls of $RANDOM have major performance loss
|
||||
|
||||
#### Process substitution
|
||||
|
||||
The debashifying of process substitution assumes that /dev/urandom will exist and will provide proper randomness. <br>
|
||||
|
|
@ -98,7 +106,7 @@ Getting the value of an array without index will give the full value instead of
|
|||
|
||||
> To avoid such situation, always get values from an index in your array
|
||||
|
||||
Arrays are store as strings. Indexed arrays are delimited by tabs and associative arrays by newlines,
|
||||
Arrays are stored as strings. Indexed arrays are delimited by tabs and associative arrays by newlines,
|
||||
This means inserting values containing these characters will have undesired behavior.
|
||||
|
||||
Debashified arrays have substantially reduced performance.
|
||||
|
|
|
|||
Loading…
Reference in a new issue