Commit graph

59 commits

Author SHA1 Message Date
zawz
f851650c15 increment bugfix version 2021-06-22 10:02:36 +02:00
zawz
56ed26ed96 fix parsing errors on variables in arithmetics 2021-06-22 10:01:29 +02:00
zawz
8b6a576713 improve echo debashifying 2021-05-28 16:31:17 +02:00
zawz
05723fe994 add color to error printing + reorganise options 2021-05-25 16:12:02 +02:00
zawz
6b8f7241bb fix memory leak 2021-05-25 11:54:38 +02:00
zawz
15ac04f505 implement delayed heredocument parsing 2021-05-21 16:36:24 +02:00
zawz
064c37b4ee fix error messages on bash 'function' 2021-05-19 16:56:46 +02:00
zawz
7379eaf180 internal rework: implement parsing context 2021-05-19 16:44:57 +02:00
mateoferon
bc215fc994 code cleanup 2021-05-04 09:32:30 +02:00
zawz
1f75f18fba add string parse minifying 2021-04-16 16:36:02 +02:00
zawz
a1b2d74940 add --no-extend option + rename --help-lxsh-commands to --help-extend-fcts 2021-03-26 15:59:22 +01:00
zawz
6828dd7bae restructure internal shellcode structure 2021-03-26 14:58:17 +01:00
zawz
588aae09e9 implement lxsh commands + reorder processing order 2021-03-26 13:41:04 +01:00
zawz
13c0d79bad rename minimize to minify + prepare lxsh commands + add reserved variables 2021-03-20 11:09:02 +01:00
zawwz
e2e2300337 implement live parse+execution 2021-03-18 15:35:33 +01:00
zawwz
8b701328bc implement quote minimizing 2021-03-11 14:54:15 +01:00
zawz
0c2f80ea92 set version to 1.0.0 + update doc 2021-02-28 15:30:44 +01:00
zawz
06eac33b0a fix echo debashify 2021-02-26 17:06:15 +01:00
zawz
931590a334 implement associative array debashifying + shellcode building process 2021-02-26 15:18:17 +01:00
zawz
fd4c1b0d05 major changes:
structure: remove manipulation class integrate into variable class
debashify: implement debashify on indexed arrays
parsing: can now parse manipulations in arithmetics
2021-02-17 17:00:12 +01:00
zawz
7d26587dd2 implement var_assign structure to cmdvar + added internal json structure generator 2021-02-05 14:42:46 +01:00
zawz
b56e7d09f9 fix shebang not resolved correctly on #!/bin/env 2021-02-03 14:59:39 +01:00
zawz
68f604de8e fix memory leak on variable set 2021-01-29 12:04:51 +01:00
zawwz
c12ec601f1 implement [[ ]] debashify 2021-01-20 16:31:31 +01:00
zawwz
2ffe4ddf2f implement internal variable structure 2021-01-20 11:49:32 +01:00
zawwz
7114a39fe3 implement arithmetic parsing and processing 2021-01-15 16:34:47 +01:00
zawwz
1b0c97f5bb implement debashify on <<< herestring 2021-01-08 15:57:42 +01:00
zawwz
142a91e68a restructure struc functions 2021-01-08 15:03:25 +01:00
zawwz
6f35028e84 fix variable processing broken on debashified process substitution 2021-01-08 12:02:04 +01:00
zawwz
f99f40b3e8 Implement debashify of <() (process substitution) 2021-01-08 11:38:25 +01:00
zawwz
2b1e7c008b restructure struc object extensions 2021-01-06 16:37:08 +01:00
zawwz
44d71155cc Add --no-shebang option 2021-01-06 14:49:20 +01:00
zawwz
6a58f345b8 Add missing recursive call on variable manipulations 2021-01-06 12:18:11 +01:00
zawwz
36dfd9266e Implement <() bash process substitution 2021-01-06 12:15:31 +01:00
zawwz
c199969b63 first debashify implementation: replace &> and >& redirects 2021-01-06 11:10:45 +01:00
zawwz
2622103cf7 increment dev version 2021-01-06 09:59:28 +01:00
zawwz
ebce56c29c fix bug on minimizing collisions on 'unset' with bash 2020-12-11 12:28:09 +01:00
zawwz
6620fb42ff Add --unset-var option 2020-11-27 11:03:55 +01:00
zawwz
b4a99d366d Restructure files: separate processing utilities 2020-11-27 10:32:32 +01:00
zawz
7e5c505a3f Extend minimize and processing
+ Add --no-exclude-reserved option
+ Add --list-var-dev and --list-var-call options
+ --remove-unused now also removes unused variables
+ --remove-unused now removes recursively
2020-11-25 16:55:35 +01:00
zawz
b3f02ce06d Optimize var operations on get argument var definitions 2020-11-20 22:19:28 +01:00
zawz
71bb883cba Fix missing recursive call on redirs in blocks 2020-11-19 17:05:37 +01:00
zawz
806580ac2a Fix gcc compile bug due to external defined inline 2020-11-19 16:53:41 +01:00
zawz
f527920a2d Increment version 2020-11-19 16:51:50 +01:00
zawz
1a5bbd7986 implement redirect parsing and minimizing 2020-11-19 16:51:26 +01:00
zawz
05ecd903a7 Add missing version header 2020-11-14 17:33:19 +01:00
zawz
a0155991e3 Performance optimizations
- Replaced some exec() calls with functions
- Removed resolved code being resolved again
- Removed empty string subargs inserted upon parsing
2020-11-13 15:18:30 +01:00
zawz
5a7c2e0bf0 add ${} parsing 2020-11-10 18:01:51 +01:00
zawz
dda4a87b28 Rename exclude options + minor code reformat 2020-11-06 17:43:37 +01:00
zawz
a777608f08 minor var minimize fixes
~ OPTING and OPTARG reserved
+ Add command read to variable argument parse
2020-11-06 17:07:18 +01:00