diff --git a/Makefile b/Makefile index ac48fe6..91049f4 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index b03da27..6618528 100644 --- a/README.md +++ b/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.
+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.
@@ -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.