forked from jhook777/5hell-for-Grey-Hack-the-Game
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchanges
More file actions
1746 lines (1746 loc) · 97.6 KB
/
changes
File metadata and controls
1746 lines (1746 loc) · 97.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// changes:
//
//// To Do:
////
// database overhaul :(
// tdump: wait for response feature
// add custom theme config
// add a way to tell grep to ignore specific folders
// expand tree -f to take both path and object as params (jk have to start over)
// -- kinda fixed this in the regular tree command...
// update 5phinx F1 help info: remove or correct outdated info
// absolutely must update the databasing system
// -- a single flat file is not sufficient
// update chop and grep to use piped strings
// todo: db
// todo: tree -f has a superior search algo vs regular, ancient tree
// -- lets bring tree into the [-f]uture
// todo: consolidate code in hashim and gopher into a single method accessible by both
// todo: add catagory var to ALL commands: general, needsShell, needsComp, needsFile, needsLaunch, needsMeta, needsCrypto (other required objects for individual commands should be obvious)
// todo: user_input override that allows pulling user_input from a list stored in the custom object
// -- to be populated by scripts calling 5hell through a nested launch
// -- need a way to secure this first
// todo: a way to authenticate do.rc per user, to avoid running your target's do.rc (or target's trap do.rc) during an attack...
// db: still needs to be able to self repair // mostly implemented
// rkit: should probably make a database file strucure
// actually fix grep's algo
// make a get_database shared function
// make a sort_database function
// ensure password fields do not push to input buffer
////
//// To Done:
//
// glosure: changed codeStr = user_input("</> ") to codeStr = user_input("</> ",0,0,1)
// tree: standard tree and tree -f will now use 5hell's color palette
// -- this means theme changes, such as Marinette's, will actually change tree's appearance
// outmon: fixed the unfinished act/react stuff
// help: added 'inspect [key]' to list of aliases
// -- it's been an alias for a hot minute and i forgot to add it to the help
// 5hell.src: added "-" as a comment character for do scripts
// -- the other comment character are: # and |
//
// sudo: new command to differentiate from psudo's functions
// -- simply does get_shell(user,pass).launch(/usr/bin/Terminal.exe,input)
// -- or /bin/Terminal.exe
// --note: use: run /pathTo/sudo to run an external sudo binary
// file: will no longer print usage when no input
// -- will recommend using file -h instead
// db: will properly catagorize bounce exploits
// -- should no longer provide false "firewall disable" classifications
// cd: currentPath will now match current_path, using the game's cd function
// -- cd usage remains identical; this change should be transparent to the end user
// ---- EXCEPT for glasspool cd will be SEPERATE from your non-glasspool cd!!!!!!
// -- GLASSPOOL will NOT use current_path
// -- the current_path will be preserved when returning from GLASSPOOL
// --NOTE: please use: globals.currentPath = "path";cd(globals.currentPath)
// ---- to maintain compatibility with internal currentPath calls within 5hell
// --NOTE: this will allow correct tab completion EXCEPT in GLASSPOOL
// ---- tab completion does not translate through glasspool
// 5hell.src: fixed another stray += that slipped in bc i pushed the wrong file
// macro: added \@pipe escape
// -- @pipe and \@pipe are only processed within the macro command, not handled by ez_clip
// malp: fixed to_int crashed caused by previous index finding change
// glosure: merged pull request that hardcodes STL for qol
// glosure: merged pull request reverting 5hell lambda support as it is no longer needed
//
// glosure: updated glosure to match upstream
// 5hell.src: added support evaluating glosure lambdas as commands
// help: added -- summary to get a brief description of each command
// help: added glosure lambda support
// credits: updated
// probe: the "no network" indication will now include the computer name
// -- this is to clarify which machine is not connected when attempting to probe through glasspool
// 5hell.src: removed the "if not @pipe then continue" as it was probpematic
// -- side effect of some 0's printing where they didint print before
// -- i'll be going through and correcting those
// -- in the mean time this allows piping and printing of empty maps and lists as well as literal zeros
// -- there will be bugs
// zap: will open the correct shell in malp
// malp: will accept negative numbers for indexes
// --eg: malp -b -1
// macro: will check macro registry before evaluation
// -- this negates the need to prepend macro calls with 'macro'
// -- however, you may still prepend a macro with macro if there is a need to do so (filename conflicts, for instance)
// enum: fixed -d option
// -- will now respect @pipe rules for macros
// -- will now append @pipe to the end of a command string that does not contain @pipe
// -- this maintains (restores?) consistency with the function's usage info and examples
// curl: will run locally on no input
//
// enum: -a will properly append -anything- to the enum buffer, not just strings and lists
// -- lists are appended directly to the end of the existing list
// -- everything else is appended as an entry to the existing list
// malp: string handler given not-quite-a-makoever and more of some concealer and contouring
// malp: buffer will now handle custom, user created objects using the generic object handler
// code: also uses generic object handler for user-created/custom objects
// malp: using malp -b [index] will actually open that index in the buffer
// -- passing a non-int value will push that object to the buffer and open it's entry
// -- -p [value] will push that value to the buffer without opening malp
// -- passing a value without -p or -b will push the value to the buffer and open malp to it's main menu
// -- you may also use the buffer command to push items to the buffer
// buffer: fixed typos causing crash
// HOME: fixed multiple instances of calling HOME and not get_custom_object.HOME
// mail: fixed crash on spool when spool file is missing
// mail: fixed cli login
// transmit: fixed crash caused by typos and missing param
// -- x2
// pause: fixed typos and missing param causing carsh
// pause: added -p-P and -f|-F to pause until file/process exists/stops existing
// porter: fixed not returning correct output
// help: fixed crash on -s
//
// buffer: new command to push something directly to the buffer without opening malp
// pause: now has conditionals: is process present and is file present
// -- -f will wait for a given file path to return a valid file object
// -- -p will wait for a new instance of a given process to exist
// porter: will return a string of result ips that may then be piped back into porter
// -- it will still add the old output to clipb as before
// felix: added slight delay to input
// added waits to the clear_screen calls in the games in help.5pk
// code: fixed missing newline characters preventing usage info from printing
// -- code actually has a lot of usage info
// -- now you can finally read it!!!!!
//
// credits: updated
// db: fixed crash when writing new database.csv#
// aptm: fixed crash when deleting repo ips
// cob: push and inspect are now aliases for cob push and cob inspect
// --eg: push mylist val == cob push mylist val
// --eg: inspect HOME == cob inspect HOME
// cob: reset will ensure restorition of hard coded values
// cob: validate will ensure HOME and macros have their classID
// cob: updated usage examples
// enum: now has built in 'do' (actually from previous update just forgot to include it in the changes)
// pwgen: added seed: I2n4Kh3Kd8
//
// tws: added new command contributed by Aksu
// -- thanks Aksu!
// credits: added Aksu for contributing tws
// resource configuration: if do.rc is encrypted, 5hell will [attempt to] decrypt it
// -- will re-encrypt once read if it was decrypted
// @HOME: added map_enc and dorc_enc fields to HOME map
// -- will be used to decrypt Map.conf and do.rc, respectively, if they are encrypted
// kraken: added -g -- glasspool to kraken
// kraken: will now decrypt encrypted map.conf
// -- prompts for encryption key if not supplied
// -- will reencrypt if the file was encrypted
// -- will not encrypt if the file was not originally encrypted
// ---- use file -e to encrypt manually
///--- update usage info
// meta: "meta restore" will now restore the the launch metaxploitLib instead of the last
// netdump: new command, gives access to net_session info
// flood: new command for running DDOS attacks on a target
// glasspool: moved to kore.5pk because net.5pk ran out of room
// 5phinx.5pk: added transmit and decipher tbuf buttons to computer handler
// -- removed errant returns from computer handler
// sphinx: added netdump/net_session info to main page
// sphinx: updated main page information irt metalib, target
// sphinx: fixed bug where sphinx would not db local libs
// sphinx: target ip info will be greyed out when target is al ocal lib
// sphinx: will properly clear xploits, metalib, netsession when using [-]
// sphinx: F1 help text moved to help.5pk
// linkdb: will clear xploits when run
// merged pull request for linkdb
// felix: added tag 4 scp, gopher, run buttons
// -- experimental; felix traditionally operates with only file objects
// brutus: disabled use of brutus in glasspool
// bios: fixed crash on inactive network
// pwgen: added seed: Duke
// reboot: fixed crash when using the command
// rsi: corrected typo in usage info
// rsi: added instructions and easy button for opening the browser to forward the port when using rsi install
// cerebrum: will now consider ["a"] as dictionary not loaded and not request a purge before continuing
// cp: fixed crash when arg2 is whitespace
// probe: "firewall detected @ addr:" changed to "Hardware firewall from switch" to clarify that it is a hardware firewall from a switch and not a software firewall from router settings
// -- these will always be underneath of a switch, for easy identification
// probe: updated display info for a router's wifi broadcasting status;
// -- the "Broadcasting: " line will only display if wifi is actually being broadcast by the target rotuer
// ---- otherwise prints "-wifi disabled-"
// probe: added -b flag to return only the boradcast status of the last probe
// probe: probe [-s|show] will now return the broadcast status of the last probe
// globals.get_lib: globals.routerLib set to null when the target isn't a router
// dm: fixed errant print in usage info
// db: enabled the -M flag
// db: fixed -i prompting for inject when an inject has been supplied
// db: added glasspool warning // todo: make a video showing how this is meant to work
// air: removed troublesome .lowers
// air: added -a flag for command line aireplay
// -- takes either bssid or essid
// gopher: will now run recursively when the infile is a folder
// psudo: streamlined get_shell options: now -s, -f, -n
// -- use: psudo -n
// ---- to obtain a root shell without prompts or the malp menu
// psudo: will reset the custom object when exiting from a start_terminal
// cob: added cob reset to manually reset resource configuration // htis is crash recovery!
// -- validates custom object
// -- resets my*0, stack_pool
// -- reruns do.rc
// -- useful after a crash; for best results use: cob purge | cob reset
// -- automatically runs after returning from a psudo -l (aka starting terminal via psudo)
// cob: purging the custom object will now also purge macros
// cob: greatly improved map manipulation within cob
// cob: improved list manipulation within cob
// code: universal object handler will now handle custom player objects
// -- inlcuding those that do not contain functions
// purge: purging the custom object will now also purge macros
// curl: new command; prints /Public/htdocs/website.html for localmachine or piped object
// -- simply calls globals.curl
// purge: purging the BUFFER in glasspool no longer results in a duplicate shell entry
// purge: rewritten and moved to 5hell.5pk
// aptm: delete repo now takes index as well as ip
// macro: added classID: macros; macro set and del are restricted from altering it
//
// HELP.5pk: new .5pk; moved command.help to it's own file because it's 35 freakin kilobytes on it's own
// -- 5hell.5pk now has room for moar feature creep
// help: moved to the above .5pk
// help: updated help guide
// psudo: added opening piped shell to -l option as well as piping a shell to psudo without a flag
// -- piping a shell skips confirmation
// -- needs moar streamlining
// reboot: new command, accepts piped objects
// dm: new command; daemon manager; manages daemons
// 5phinx.5pk: shortened the is_home function
// cob: saftey checks to prevent overwriting HOME map
// felix: now takes a path parameter; starts in the given path instead of /
// felix: added perms/chmod button [p]
// felix: won't print those debug lines outside of debug mode
// zap: fixed hard crash on invalid input
// perms: updated usage info
// help: fixed crash in help conventions
// macro: updated return on no input
// updated credits
// dig: fixed random crash when dig called zap that just randomly started happening???????????
// -- anyway, fixed
// air: updated usage info
// cob: will disallow directly overwriting the HOME map
// cob: cob.validate will ensure the HOME entry is a map
// ez_clip: will run cob.validate before accessing @home
// bank_heist: fixed crash caused by undefined 'tool'
// db: added -M flag to automatically use @o myx0 for scanning without needing to meta -i @o myx0
// -- still need to meta restore afterwards
//
// glosure: merged pull request: 'params' is now accessed via globals
// glosure: merged pull request: added script-path
// macro: added -f flag to import a macro from file
// -- supports multiple lines
// -- each newline character will be replaced by: | |
// ---- joining the lines together without piping output from one line to the next
// dtools, kore.5pk: moved cad, fakepass, and dig to kore.5pk as dtools ran out of room
// 5hell.src: added line to security section to nullify the user's access codes on successful login so they aren't hanging out in the company breakroom or whatever
// 5phinx.5pk: fixed typos in globals.transmit that would cause crashes if called
// 5phinx.5pk: ez_clip: added forgotten \@r to escape @r
// 5phinx.5pk: removed instances of _cascade exit as it is no longer needed
// liber: will now work with multiple database files
// linkdb: will now work with multiple database files
// -- will automatically grep all database.csv[N] files and use them
// bios: will now detect multiple database files
// db: fixed (yet another) crash (i don't want to talk about it)
// db: needs to autorepair and auto-remove duplicates across multiple files
// malp: database button will work with multiple database files
// malp: todo: database button needs like a sort function or something
// ifconfig: added -g|gateway: returns the gateway of the active computer object
// ifconfig: added -w|wifi: manually connect wifi
// -- usage info updated
// iwlist: simplified return; returns localmachine.wifi_networks
// -- takes bssid OR essid and then finds the other for you
// iwlist: added -a flag; display the classic air powered iwlist
// linkdb will read from multiple db files
// -- don't ask why this wasn't already a thing. just don't.
// rsi: corrected usage info: use -k|-K for deleting rkit on all rshells, not -d
// -- -d is for daemon mode
// rsi: added -D for extended daemon mode
// -- -d will stop listening when -any- rshell is connected
// -- -D will stop listening when the -next- rshell is connected
// ----ie: -D will operate on a non-empty rshell buffer
// -- you may follow -d|-D with a flag or menu option
// -- see rsi help for more
// rsi: removed cascade exit from start_terminal option
// rsi: fixed crash caused by printing an error instead of returning an error
// psudo: removed cascade exit from start terminal: will actually work now
// file: added encrypt, decrypt, is_encrypted: -e, -d, -ie
// -- unavailable if crypto.so is not loaded
// -- works recursively on folders
// -- folders themselves may not be encrypted, only contents
// tree: corrected usage info re/ -f, -r, ;
// -- trees from piped object's path, not /
// sc: added 5hell.d to -d and -n
//
//
// db: fixed crash in db; name not defined
// db: fixed other crashes
// db: definitely fixed the crash
// db: will dynamically choose a lan inject value that (hopefully) exists on the target network
// db: will have a slightly easier time telling firewall disable exploits and bounce exploits apart
// poke: will be less zealous about it's affirmations
//
// updated credits
// mv: removed ellipsis from output
// cp: removed ellipsis from output
// help: fixed help alias' full text not displaying, which was hiding important alias information from the user
// db: will now write a new database.csv when the last-numbered one is full
// -- writes to the path of the last numbered file
// -- starts at database.cvs, incriments to database.csv[N]
// --ie database.csv1,....cas2,....csv3,...
// -- still need to get 5hell to work with reading multiple files
// shell: --daemons output adjusted
// psudo: fixed -sf -- skip prompt not showing in usage info
// -- will auto open in malp
// psudo: fixed 'y' not opening malp when prompted
// psudo: added -sn to skip prompt and skip malp
// poke: updated usage info
// poke: adjusted "file exists" output
// malp: added -p -- push to buffer without opening malp
// malp: fixed malp unexpectedly opening objects in the buffer under edge cases
// psudo: added warning about traces when using start_terminal to usage info
// calc: adjusted usage info for the 'base' fuction aka padic representation
// -- made it easier to search for by search for when using the keyword "padic" *cough*
// 5phinx.5pk: fixed crash in secure_connect: undefined 'passwd'
// code: updated usage info; I really should consider breaking this into 3 different commands
// grep: improved output when displaying matches irt symlinks and word searches file matches
// -- updated usage info
// file: will display the origin file of a symlink
// sl: will return the path to the original file when symlink tests are positive
// --eg: poke /root/a || sl /root/a /home/user/Desktop/b || sl b
// ----: /root/a
// -- will return 0 when target file is not a symlink
//
// dig: added regex to grep for 5hell to ensure it gets "5hell" and not "5hell.d"
// 5hell.src: juggled sanity checks to better handle new bash stuff
// shell: fixed crash when piping int:0 to the void
// shell: you may now launch binaries in /bin and /usr/bin by name, without pathing
// -- just like regular bash
// -- tab completion and command history stuff applies
// cad: changed local var 'cd' to local var 'cad' bc we can't assign to cd
// air: restored -h flag
// -- not actually sure why past me disabled it
// shell: new flag: --nt
// -- place at end of command string to launch a new terminal and run the command in the new terminal
// -- this is the same as running Terminal.exe with params so you may use it to send 5hell commands through --nt if 5hell is your bash
// --eg: |> someBinary " param param parmampupampam \" param with quotes \" " --nt // launches someBinary in a new Terminal with the given params
// -- passing '"' as a launch param is now possible
// nt: new command to do the above but as a command
// -- more intuitive when wrapping complex commands to be 5porked
// --eg: nt " kraken rkit || prox "
// --vs: " kraken rkit || prox " --nt
// -- both result in the same action
// -- nt may take piped shells, then it will launch a new window using that shell
// -- be warned launching .exe's this way counts as a start_terminal and may result in a trace
// --eg: zap | nt Browser.exe -- opens a new terminal on the target shell and then opens the browser from that terminal
// --vs: zap | run /usr/bin/Browser.exe -- opens the browser using the target shell; no terminal window
// --note: remember that both count as start_terminal
// -- nested nt launches require a pause to be passed with it _unless_ 5hell is your bash and tables/tp is present
// ---- in which case the natural delay when importing the dictionary at launch will suffice as a delay
// --eg: nt " nt nt \" nt nt \" "
// 5hell.src: fixed --5pork bomb
// -- now it's a 5pork sloth using nt
// params: bash doesn't have a global params field which causes weird issues with 5hell so now there are a bunch of checks to avoid crashing because of it
// exit: fixed crash on exit
// mkdir: added highlight to new dir name in output
// kore: fixed crash in kore -r when skipping table creation
// shell: will specify if launch binary is named something other than 5hell
// -- like bash
// transmit: fixed crash caused by undefined variable "port"
// HOME: added check to prevent overwriting cob.HOME if it already exists
// brutus: removed errant debug line
// aptm: fixed crash caused by metaxploit not being present when hot_swapping libs
//
// mail: added missing usage info regarding logging into mail via comman line
// --ie: mail [email] [pass]
// -- been there for a while, i just forgot to document it
// -- literally months...
// brutus: removed vestigial "arg5" that was preventing command.shell from sending any input at all to brutus
// -- which in turn prevented passing any arguments (such as help) to brutus
// brutus: (temporarily) disabled: brutus -s
// -- use: ssh user@-brutus [ip] instead
// mv: added -r flag to overwrite destination folder (prevously only possible in felix)
// -- n.b: this is a 'rename and overwrite' command for folders
// cerebrum: fixed dictionary not updating
// cob: validate will include the HOME map
// purge: -o: HOME map will be excluded when purging the custom object
// purge: -M will correctly purge the active MetaLib object
// purge: -r will now accept a string of PID's or process names to exclude from purging the rshell buffer
// -- delimit with the ":" character
// kill: will accept a string of PID's or process names to exclude from the kill
// -- delimit with the ":" character
// rsi: -p will accept a string of PID's or process names to exclude from the purge
// -- delimit with the ":" character
// soon: i'll add purge refinemnt to purging the BUFFER soonish (maybe)
// aptm: fixed: not allowing the importation of an aptclientlib if one isn't already loaded
// pwgen: added 'pegade' to the seed list. the game made this from "pegasus" but my generator didn't
// -- this will result in several more password iterations being generated from this seed
// -- you could rerun pwgen if you want, after this change, or you could just shoehorn 'pegade' into your tables and call it good
//
// 5phinx.5pk: startup _import_tables will no longer print debug output when not in debug mode
// aptm: will now ignore invalid ips
// pwgen: reverted global.HASH_TABLE change
// -- pwgen will rebuild the hash table on each run
// -- this will prevent incomplete tables from being formed
// -- this removes the potential speed boost and pwgen is back to it's original speed
// -- this will also (temporarily) disable making custom hash_tables
// -- i'll revisit this and figure out a good compromise
// cerebrum: will no longer import tables if it is located in .Trash
// air: removed bad is_network_active check; air will work again
// air: completed the monitor mode check; air will aireplay again...
// kore: fixed crash in kore -r when creating rkit; added quotes to /HOME["t5"]
// rclean: fixed rclean refusing to scrub index 0
// malp: fixed [8] trying to run 5hell.d instead of 5hell
// help: alias: corrected typos and corrected information regarding creating macros
// grep: removed spammy debug lines from regex engine
// grep: will no longer print "Function()" when it finds a match
// -- turns out print greppy.grepped[-1]["name"] returns the string "Function()" because ["name"] is a function reference to the "name" function in the object's map
// ---- where .name would be the result of said function
//
// 5hell.src: will return 0 if when input-prompt[0] is 0 or ""
// -- moved the "extra print before the prompt" line to within the user_input/input received check
// -- should further reduce unwanted prints when executing do.rc or other batch files
// kore: fixed the default do.rc created by kore -r
// -- removed whitespace and placed comments where they belong
// --NOTE: invalid lines in do.rc will still cause 5hell to print a return line for that line
// ---- comment out or remove the line to avoid this
// rsi: correctly linked button [3] to infil command
// pwgen: fixed creating incorrect folder structure and general not workingness
// -- will now properly respect the paths indicated in cob.HOME.tp and cob.HOME.t5 (which are defined individually)
// -- will write to current path if the defined parent folder of tables/t[p|5] does not exist
// pwgen: moved HASH_TABLE to globals
// -- this way it won't create it again if it already exists
// -- ie when doing: pwgen | pwgen hash
// -- will speed up the process a little bit
// air: fixed air not properly detecting your network card or monitor mode
//
// 5hell.src: fixed undefined color code and color termination
// felix: fixed missing paramter: clr
// air: fixed undefined "wlan"
// p_validate: fixed broken __isa check
// 5hell.src: removed errant </color> tag
// cerebrum: will offer to import tables when detected (if not already loaded)
//
// 5hell.src: PASSWORD SECURITY section moved to top of 5hell.search
// -- still commented out by default, but easier to find
// run: fixed typo causing crash when running from glasspool
// sphinx: added additional "color5phinxDisplay" colorDefenition
// silentclean: move from kore.5pk to dtools.5pk
// kore.5pk: moved all commands except kore to a new .5pk called net.5pk
// -- kore.5pk will contain a much expanded kore along with some new commands and possibly non-command shared functions
// -- this will free up space in dtools, net, and 5hell.5pks
// -- yay, room for more feature creep
// sphinx: moved command.sphinx to kore.5pk (5phinx itself remains in 5phinx.5pk)
// kore: will now check if we are home and disallow -S (paranoid secure) if we are home
// kore: -r option will now generate a do.rc in rkit if one is not present
// -- this is still in alpha
// -- this do.rc will include a comment section with info on using do.rc and adjusting the default colors to fit a user's theme
// kore: added --control: kore runs in daemon mode and executes commands written to an input file
// -- this will allow controlling one or more 5hell sessions through a shared input file
// -- and a shared output file
// -- optionally allows spooling a log of all interactions to file
// -- this is big
// kore: fixed [-sc] flag being ignored
// -- will properly run kore's secure protocol with silentclean instead of rclean
// outmon: moved to kore.5pk
// outmon: updated usage info
// outmon: default interval changed to .1
// -- default path removed; supplying a path is now requried
// outmon: added ability to define actions on file change
// -- see outmon -h for more
// malp: moved to kore.5pk
// hashim: moved to kore.5pk
// 5phinx.5pk: moved the anti-brick at home check in perms to 5phinx.5pk for use as a shared resource
// -- uses the same anti-brick logic as 'lock'
// 5phinx: when setting port to 8080, IF target ip is a public ip, it will be switched to the local ip of the router at the public ip
// -- if target ip is a lan ip, it will remain as is
// -- this will NOT occur when using the target command
// 5phinx.5pk: start_up_resource_configuration will skip comment lines to avoid printing blank lines to the terminal
// bios: added color termination to security audit elements
// rsi: swapped order of buttons to match order in buffer
// rsi: added upload rkit button
// -- made it button [3]
// -- former button [3] scp has been moved to button [9]
// air: fixed crash when invoking air when network is inactive
// air: removed un-needed block for detect hidden when glasspool is active
// air: will prevent aireplay invocation if monitor mode is inactive
// -- will print a warning when air is invoked
// -- air automatically actives monitor mode so if this happens, the card is incapable of monitor mode
// help: fixed two typos in help_conventions
// HOME_SERVER: @home server info moved from a list to a map
// -- updated references throught the source code
// -- added new elements: ~/tables/tp, ~/database.csv
// -- the HOME map is in the get_custom_object map, making it accessible and editable by cob at runtime
// felix: will now warn the user before allowing a run or database operation to take place
// -- the warning informs the user that run works on the active shell object, not the file object
// -- the warning informs the user that databasing works only on the launching shell, not the file object or the active shell (add this to usage info)
// felix: should have less flicker when refreshing in clear_screen mode.
// shell: the shell command will return the ip of the active computer object instead of the active shell's
// -- this avoids confusion while in glass puddle mode (glasspool for computer objects)
// cerebrum: will now search for both tables/tp and tables/t5 when invoked;
// -- will check for tp first, then t5
// -- this includes the auto import that occurs when 5hell starts up
// cerebrum: fixed cerebrum failing to offer to auto import on invocation when tables/tp and/or tables/t5 are present
// brutus: polished usage info a bit
// hashim: polished usage info
// -- adjusted default settings to better suit parse home server info
// clipboard: the clip spaces will now initialize as empty strings instead of null
// glasspool: clarified that the [-m] option shows buffer shells AND rshells
// -- making 'gp -m' more useful than 'gp @B -m'
// ezclip: added @r [index|-m] to access an object in the reverse shell buffer
// -- works the same as @B [index|-m]
// -- if there is not a shell at the index given, an error will print and the replacement will be (Int: 0)
// do: updated the 'do help extra' examples to include clipa ++
// do: will skip comment lines;
// -- should stop unwanted printing of blank lines in your do script execution
// macro: will now suppress the printing of return values until the final return
// -- this will stop the double printing of return values
// -- this comes at the cost of not printing the return values of all but the last command
// ----- (those values are still piped as normal, it's just the print that's suppressed)
// -- use: macro -v [macroname] to launch a macro in verbose mode, instead
// -- optionally: call do within the macro to get each line to print:
// eg: macro set ok " echo dokie | echo okie" // only prints okie dokie
// eg: macro set ok " do 1 \" echo dokie | echo okie \" " // prints dokie, then okie dokie
// --note: macro returns it's last value, while do returns a time stamp
// ---- make sure to use the one best suited to your nefarious doings
// memdump: added get_custom_object elements and macro list to memory items dumped to file
// -- excludes gco.dictionary
//
// 5phinx.5pk: added print override: can now specify default print color in 5hell.src
// -- error and warning colors are placeholders; will be implemented soon(tm)
// -- this doesn't work for multiline prints!!!!!!!!!!!!!! fix it!!!!!!
// sphinx: now has configurable color theme stuff
// -- see 5hell.src for 5phinx color definitions
// kore: added --override [colorDef] [newColor]
// -- finally, theme compatibility!
// -- you may change any colorDefinition in 5hell.src (any global that starts with the word 'color')
// -- put these lines in your do.rc for custom themes without recompiling
// -- or edit the appropriate definitions in 5hell.src to hard code changes
// --eg kore --override colorDefault <#FFFFFFFF>
// kore: added --silent to toggle silent print mode on and off
// -- place this at the top and bottom of your do.rc to suppress startup output
// -- remember it's a toggle, so match the on and off!
// 5hell.src: added: shell --this
// -- pushes the current active shell to the buffer
// ---- i've been meaning to add this for a long time, just kept forgetting
// -- keep in mind it doesn't *return* the shell since it's not actully running a command and therefore isn't "returning" at all
// -- the utility of this is when i lose an active shell object for some reason ( such as killing an rshell i accessed via glasspool...)
// db: will correctly link global net_session
// -- this will allow malp to properly display net_session info after db runs
// ssh: will now return "ssh: failed" instead of null when ssh fails
// run: will fail if it receives "ssh: failed" as a second or third argument
// -- this is to prevent a run occurring locally when it was meant to be remote
// ---- when piping from ssh
// -- I still need to think of good logic to use in run when you pipe in a non-existant shell
// -- currently, run will execute on the active shell if not piped a valid shell
// ---- remember this when you pipe non-existant shells from failed attacks
// run: will print a line indicating if it is running on a target shell instead of locally
// -- if glasspool is active and no shell is supplied,
// ---- run will indicate it is running via glasspool
// perms: fixed 'perms lock down' and 'perms unlock all' bug
// silentclean: fixed silentclean ignoring piped shells/computers when they are the first argument
// -- silentclean will now fail when it receives invalid input
// ---- instead of running in default mode on invalid input
// air: will report the actual number of ACKS required when selecting attack method
// -- if max acks is > 34000 it will recommend using brutus instead of air
// cerebrum: fixed crash while importing dictionary with: cerebrum -i @home
// -- the -i option will now accept any ip address (or local path)
// -- using @home will paste the @home ip address, making usage the same
// -- -i will now accept either tables/tp or tables/t5 as input for the dicitonary
// jtr: fixed crash when using n:use numbers and 1:first cap only
// -- eg: jtr 5 15 aAn 1
// credits: added CyanMatter
//
// DaemonManager: added hack to move 5hell.d to move 5hell.d to rkit on initialization, if rkit exists
// hotfix: DaemonManager will load 5hell.d to rkit, if present, on initialization instead of /root
// -- it will load to /root if rkit is not present
// -- launching 5hell after adding this update will automatically move 5hell.d to rkit if both are present
//
// DaemonManager: merged PR from redit0: added DaemonManager.List method
// -- to use the new method:
// ----: manager = new DaemonManager
// ----: manager.Init
// ----: daemons = manager.List
// rsi: glasspool option is now option [4] to remain consitent with malp
// -- the to_buffer option (formerly [4]) is now option [1]
// 5hell.src: the security section will now be commented out by default
// -- uncomment and customize if you wish to secure 5hell with a password
// scpm: fixed bug causing scpm to report failure when it actually succeeded
// -- basically if the copy_to path was '/' then the success check looked for //path,
// -- will now properly prevent the extra '/' in the path
// fetch: get_binaries now has a toggle to return only .log files (chats and system.log)
// --: fetch -b [shell] -- all binaries, fetch -l [shell] -- only logs
// cerebrum: will now search for tables/tp throughout the filesystem instead of a static location
// -- this is mostly because i got annoyed at it not importing /home/guest/rkit/tables like i expected the last change to do
// -- so now it'll load no matter where it is. rename it if you don't like that
// 5hell.5pk: will properly set the BIGBRAIN bool
// dig: added 'rclean -d @c` to the end of the default dig.bat
// -- missing a log scrub line is a bit of a big deal, sorry :|
// dig: adjustments to dig -s to get it to power through failure
// -- more therapy needed
// 5hell.src: changed the FROM PARAMS, FROM FILE lines to debug lines, as they were meant to be
// portmap: put a blinky in make portmap
// cob: adjusted return text
// bios: -i will accept relative paths
// -- -i will also automatically buffer results
// bios: added [-C] [cryptoLib|/path] -- replace the global crypto library
//
// 5hell.src: moved the color palette from 5hell.5pk to the top of 5hell.src to both make room and make changing default colors easier for the end user
// -- for example, if your default text color is cyan, and you want the cyan lines to be a different color so they stand out; change the hex value
// 5hell.src: will replace || with | | for the 'input' var as well
// do: will properly handle using || in do scripts thanks to the above
// clipboard: fixed crash when using ++/-- on an int stored in the clipboard
// -- using ++/-- will now recast the value as a string after increasing/decreasing
// -- this is to fix crashes in other commands that expect string, not integer, input, as well
// -- pipe to string -n and then to another function/command if you really, really need an int
// shuffled some other commands around the .5pks to make room and to improve consistency between .5pk contents
//
// cob: added ability to 'cob inspect' a map within the custom object (currently only one layer deep)
// --eg: cob set mac {} || cob set mac.lmore " tags " || cob inspect mac
// cob: inspect will now show a small amount of the contents of stored maps
// macro: fixed issue causing the wrong part of the string to be highlited when a selfcall is possible
// sphinx: you may now launch 5phinx without metaxploit or crypto present
// -- scanning won't work, but you can still launch it and use probe, idk
// -- just feels weird blocking it
// contrib.5pk: rejuggled the position of two functions because i forgot why i had put them in their pre-juggle position in the first place
// probe: when probing a lan ip that is not a router, probe will walk that subnet 1 ip at a time to find the correct router
// sphinx: the port info display (under target ip display) in sphinx will update this information when port is a router an the probe is actually done
// -- it won't, in most cases, update when only theip itself is changed. have to redo the probe first
// -- changing the port number *should* update the port info right away
// -- changing target ip to a public ip *will* immediately update the port info to the new router if target port is also a router
//
// the whole thing: threw @'s at 5hell to prevent unwanted rogue function execution when passing functions around as params for *some* commands
// -- if you find cases where I missed and you think it needs it, pleae @ me. If you don't like how messy the code is, don't @ me, bro.
// -- the goal is to allow functions to be passed around as if they were objects and only execute them when we really, really want to
// -- you can run params through globals.Kérberos( arg ) as an @ reference (ie: arg = Kérberos(@arg)
// NEW FUNCTION: Kérberos(arg) will return arg as a reference if it is not a function and will return:
// ---- Kérberos: prevented rogue function execution
// -- if arg is a function
// -- put this in your custom commands (or existing commands) if piped functions are executing without your permission
// run: will not execute piped function refrences
// run: updated usage info
// echo: will not execute piped function refrences
// ez_clip: will (hopefully) not execute function references
// malp: rogue function prevention added
// 5hell.src: added --daemons, --daemons stop [name] to view and stop daemons
// 5hell.src: added rogue function execution prevention
// clip[a|b|c]: _complete__rewrite_
// -- consolidated code
// -- clipboard is now a map; easier to add new clip spaces if desired
// -- easier to incorporate into future session objects
// -- added --, ++, -=, += for incrementing/decrementing the clipboard if it is an int or string: int
// -- added -z -- set clipboard to zero
// -- added -n -- set clipboard to null
// -- updated usage info
// -- usage info is larger than the actual clipboard code :|
// globals: changed all references to old globals.clip_board_x to globals.CLIP[index]
// -- in the future this will be session.CLIP[index]
// 5hell.src: updated comment regarding do.rc to include putting a priority version in Config
// -- the one in Config supercedes the one in rkit
// -- this info is in the help info but i felt it also belonged in 5hell.src
// malp: option [3] upload rkit will now launch 5hell right away without prompts
// -- use [8] run if you want to run it with launch params
// -- this routine now uses command.infil, which is a new command
// malp: will no longer execute piped/stored functions without being told to do so
// new: command.infil: runs the same routing as [3] in malp
// -- because why wasn't this a command?
// --: infil [shell_object] [opt:params]
// --eg: infil @B -m " bat pwn.bat "
// globals.decompiler: overhauled decompiler, p_validate, p_exe
// -- these will play nicer with piped functions
// -- at the moment, to explicitly execute a piped function; pipe it to command.code
// --eg: cob get funky_town | code
// -- this prompts for each param the function takes, if any, before executing the function and returning the result
// ---- i hope to improve on this in the future
// _switch: overhauled to better handle piped functions
// cob: you may now get and set nested indexes within maps s
// -- setting list indexes still needs work; needs push, pull, pop, etc
// ---- so that will be Soon(tm)
// -- see cob -h for details
// rclean: cleaned up 'detection_factor' display
// -- fixed crash when selecting an object from the mini-menu when using @B -m
// help: added missing -A flag option
// dig: fixed the 'idfk' database error (fucking hopefully, idfk)
// linkdb: will now return 1 on success and 0 on fail
// calc: moved from kore.5pk to dtools.5pk to free up space and also because it kinda belongs there anyway
// code: moved to dtools.5pk from 5hell.5pk
// pwgen: moved to contrib.5pk from dtools.5pk
//
//
// 5hell.5pk: added colorGrey
// 5phinx.5pk: removed over 10k chars of legacy/commented code
// dtools.5pk: also removed a bunch of legacy code
// 5phinx: imporoved target port information display
// -- it won't mix and match your targets anymore
// -- Except: when target port is 0 and target ip is not a router
// ---- then port info will show the gateway router of the network
// ---- i may or may not 'fix' this. atm, i can't decide if it's good or bad.
// probe: upgraded super powers:
// -- will now show machines not directly connected to a _remote_ router in grey
// ---- when probing a local network, this won't apply
// -- when probing a remote network, this applies to machines with a port forwarded to them that are not on the gateway's subnet
// NOTE: when combined with the below, a machine with lib and ip in grey is most likely non-existant!
// -- will now (attempt to) distinguish between non-existant machines vs non-responsive machines (aka missing lib)
// -- formerly ports forwarded to non-existant machiens showed as "unknown"
// ---- they will now show as "no machine" in grey
// -- formerly ports forwarded to non-responsive machines showed as "unknown"
// ---- they will now show as "no response" in grey
// ---- machines with an active port but missing/corrupt .so will show as "no response"
// --NOTE: when a portscan is run externally and a port is forwarded to an existing machine within the network that is;
// ---- (a) not directly connected to the gateway
// ---- (b) missing it's lib.so
// -- the machine will show as "no machine" instead of "no response" despite the machine existing
// ---- when probe is run internally on the same network, that same machine will show, correctly, as "no response"
// ---- this will change when i think up an efficient solution. the current state is a bit hacky
// NOTE: to reiterate: if port/lib info AND lan ip are greyed out, the machine is either not there at all, or is nuked
// -- it's difficult to tell for sure without investigating it yourself. gl.
// probe: fixed typo causing crash in update_port_info
// probe: fixed typo causing crash in usage info; updated usage info
// purge: added -p -- purge PORT_MAP
// kore: fixed crash on no arguments
//
// 5hell.5pk: moved globals.get_file to 5phinx.5pk bc 5hell.5pk ran out of room
// globals.get_file: will now return a file object if passed a file object
// -- formerly the function would return the file path if input was a file object, and file object if input was a file path
// -- now get_file will always return a file object
// -- this will probably break some things...
// 5hell.src: moved checking if prompt[0] is a file that we are trying to run to after confirming it isn't a command
// -- this will reduce get_file calls (which recurse the whole filesystem)
// ---- as well as preventing files with the same name as a command from interfering with command execution
// probe: facelift; color coded aspects of the output
// -- red: switch or firewall or closed port
// -- green: open port (includes gateway and internal)
// -- magenta: non-switch router/machine with port 8080
// -- cyan: known lib
// -- gold: unknown lib
// -- orange: no database found
// -- white: server
// probe: updated usage info
// grep: fixed grep -a and grep -f losing the last result found
// perms: perms lock [opt] will now take a path in addition to the keywords: all, partial, down
// -- providing a path locks that path recursively
// --eg: perms lock /root
// perms: unlock now takes a path in addition to the keyword: all
// --eg: perms unlock /bin
// lock: the lock alias for perms lock all has been made into a command with additional options
// -- lock by itself will work as normal
// -- lock [path|file_object] will lock that path, recursively
// kore: updated usage info
// air: fixed pathing issue causing a crash on startup
// air: menu has changed!!!! be sure to take note of the new menu options when cracking wifi
// air: will search the system for file.cap instead of assuming current path or home_dir
// -- current public version of the game has weird current_path vs launch_path rules
// -- experimental might fix this but for now we have to search for file.cap because it can end up in a number of folders depending on the situation
// -- using tree instead of grep so that the search is silent
// air: will now prompt for the final destination folder for the generated .cap file
// -- leave blank (press enter) to use default; currentPath
// zap: you may now pass an inject value to zap when preselecting an attack
// --eg: zap 1 password, zap 1 191.168.0.2
// zap: you may use the -r flag to skip the BUFFER prompt
// --eg: zap -r 1 password
// -- remember that zap [mem] [val] [opt:inject] will already skip all prompts
// run: you may now run binaries on a system without the 'run' prepend
// -- this is to give run more bash-like performance
// -- simply typing the full or relative path is sufficient to run an external script
// -- note that macros take priority over this;
// ---- a macro named the same as a file or command will be processed instead of the file or command
// -- using run to run scripts will still work, of course
// run: updated usage info and usage examples
// zap: updated usage info
// meta: will now return the linked/loaded metaLib for ease of piping
// macro: fixed typo causing crash when viewing usage info
// -- added info about escaping ez_clip (eg @a, @b) with '\'
// ----eg macro set foo " echo \@b " vs macro set foo " echo @b "
// macro: will now print the macro string to be executed
// macro: will now warn if a macro shares the name with an existing command
// -- if a command and a macro share the same name, the macro will execute, not the command
// macro: added warning if macro contains infinite loop // produces FALSE POSITIVES!!!! but otherwise doesn't interfere
// fetch: added -b -- fetch binaries; works same as the button in malp/rsi
// -- fetch -b [opt: path] [piped_shell]
// -- defaults to current path
//
// if: fixed bug preventing if from working correctly
// -- also updated output
// -- it is now safe to do silly things like: if " echo bar " " echo foo " " if bar bar \" echo foo \" foo " bar
// enum: updated usage info
// kore: fixed typo in kore -S usage info
// kore: added temporary hack to ensure kore clears all mail.txt and bank.txt
// -- grep -a is omitting it's last result from it's return, fix it
// rsi: added rsi -l -- return the length of the rshell buffer
// -- added rsi [-k|-K] -- remove rkit and scrub log on all rshelled machines
// -- added rsi --export -- return the rshell buffer as a list
// -- updated usage info
// --eg: macro set bubye " rsi -k || rsi -p y "
// macro: will now accept piped input
// macro: updated usage info
// -- when setting a macro the @pipe point in the string will be replaced by whatever was piped to the macro call
// macro: adjusted output of macro -l|list
// purge: fixed incorrect prompt for purge -m; it will no longer ask if you want to clear rshells when purging macros
// cob: added validate function to ensure the custom object contains the macros and stack_pool indexes
// --: 5hell will auto-call this routine in as many appropriate cases as I am able anticipate
// perms: added /bin/bash and /etc/init.d to the anti-brick routine for 'lock' (aka perms lock all)
// sc: added /bin/bash to nuke routine
// rclean: added /bin/bash to nuke routine
//
// air: will now search filesystem for .cap files instead of only current path
// pwgen: will now use HOME_SERVER[6] settings for default path for writing tables/tp and tables/t5
// -- this string must end in: /tables/t5
// ---- don't forget!
// --eg: if HOME_SERVER[6] is: /root/rkit/tables/t5
// ---- then pwgen will write tables/t5 and tables/tp to /root/rkit
// --NOTE: kore -r will still copy tables from anywhere on the filesystem into rkit when run
// ----- this will likely change in the future
// pwgen: fixed: the last password file being overwritten, resulting in lost passwords
// hashim: will now use HOME_SERVER settings for default paths to the pass/swap file and the tables folder
// -- will search fs for tables if not found in specified folder, as a backup
// rshell: will now use HOME_SERVER settings for default port, as well as default ip, of rshell server
// checkUser: updated to not reject ftpshells
// malp: fixed: scp gives a malformed error message on bad download
// malp: fixed ftpshell handler to actually handle ftpshells
// -- note: ftpshell.put is currently broken in the game
// -- you can still -upload- to an ftpshell from a regular shell with scp, though
// -- just no downloading from an ftpshell (no ftpshell.put)
// rsi: changed locals.shells to locals.rshells
// 5hell.src: you may now use || to seperate commands without piping output
// -- this works the same as piping to empty space, ie:
// ---- echo one | echo two | | echo three
// -- is the same as
// ---- echo one | echo two || echo three
// -- where the last command will only echo 'three' and not the output of the previous commands
// -- this is '&&' in most shells, i think
// -- updated pipe usage info
// ezclip: fixed "to_int not found in map" when using @p
// perms: corrected note when using lock:
// -- the command to bypass anti-brick is: perms lock down
// -- not perms lock all
// -- the 'lock' alias is aliased to perms lock all
// games: drug wars: adjusted difficulty of officer hardass
// -- adjusted several values including inventory space, event frequency, drug size
//
// pwgen/cerebrum: the default dir for tables has been moved to home_dir/rkit/tables
// -- this way you can take it with you when uploading and use it if you, for instance, start_terminal and lose stuff in memory
// -- be sure to move your currently existing /root/tables to your rkit folder!
// -- kore -r will now copy tables to rkit, if it exists outside of rkit
// cererum: please note that when cerebrum auto-imports the dictionary from tables, it uses a grep routine
// -- meaning you do not *have* to put tables in rkit
// ---- cerebrum will detect it anywhere on the system - at launch -
// -- using the @home function of cerebrum will use the information in HOME_SERVER
// -- the @home function uses ssh for connection
// -- ip, port, username, password, and path to tables are all utilized, please define these appropriately
//
// games: drug wars: updated wealth values for all neighborhoods (hopefully this makes winning more feasable)
// do: launching 5hell with do now accepts all params passed
// -- you may launch 5hell with params without the do # prepend
// -- launching with do as the first param will still exit when complete
// -- launching with do as the first param has two modes:
// -- if -f is not params[2] then everything from params[2] and on will be wrapped in floating quotes when processed
// ---- this means the whole line will be executed as a single do script
// ---- if params[2] is -f then the file named in params[3] will be launched first, then the rest of the line will evaluate
// -- launching with commands without do as the first param will result in the whole line being evaluated
// ---- 5hell will not exit once the evaluation is complete
// do: added the above to usage info
// do: updated usage info to include info about adding comments to a do script
// 5hell.src: added 8th element to HOME_SERVER: int:default=1222 rshell server port
// rshell: will use HOME_SERVER[7] as default rshell server port
// help: actually added the line for help daemon to the help page, oops
//
// malp: hotfix: copy and move in the file handler will actually work now
// malp: file handler fixes:
// --: fixed crash in copy routine
// --: combined copy and move routine
// --: fixed rename routine
// --: removed duplicate curl routine
// --: added spam routine: fill a folder with a bunch of copies
// malp: shell handler will now loop until exited the same way the computer handler does
// credits: added: bakeneko, GSQ, blujoker for ideas and bug catching
//
// mail: added command line login
// -- mail [email] [opt:password]
// mail: added command line brutus login
// -- mail [email] -brutus
// mail: added command line spool option
// -- mail spool [opt:path]
// -- must be logged in to spool mail
// ez_clip: fixed a crashed when when using @B on a bad index; missing b_err
// 5hell.src: changed load order of prelaunch stuffs:
// -- stack_pool now loads before do.rc to prevent a negative stackpool when do.rc calls 'run'
// meta: load (and load_lib) will take a full_path as well as a filename
// -- previously it only loaded libs in /lib, now you can load any lib
// -- be aware you may only EXPLOIT libs in /lib
// -- but checking things like version and patched status they don't need to be
// meta: updated usage info for the above
// rclean: updated usage info regarding using a premade 'silentclean' scrub file
// -- poorly documented feature needed more attention
// -- will now copy the scrub file over the log instead of moving it
// silentclean: added the above to silentclean
// -- will now search for a file named 'silentclean' and use it if it finds it
// -- will move the scrub file over the log instead of copying it
//
// string: fixed crash in -N no_parse option: p_str -> sp_str
// chop: added 'split' search param to usage info so ppl looking for 'split' can find it
// -- why did a command that is all about split not have split in the usage info? fiik
// aptm: finished command line options for aptm
// aptm: will correctly check for updates and not update up-to-date libs
// -- remember that you can give aptm update a path to any file or directory
// -- passing a directory updates all libs in that directory
// kore: will run silentclean as part of [-s|-S] secure routine
// -- seriously, this whole time I thought it already was :/
// kore: will no longer run kore -s before kore -r
//
// 5hell.5pk: changed the load order of globals and 5phinx/contrib to accommodate the super_import change
// 5hell.5pk/5phinx.5pk: will now use globals.super_import (located in 5phinx.5pk) to import libs
// -- this replaces hot_swap_libs used by aptm
// -- this will ensure the latest lib version is loaded on startup
// -- this will load metaxploit, crypto, and aptclient from any directory with any filename
// -- the latest version will be used if multiples are detected
// -- this will also be implemented into: meta -i and meta restore
// -- the old globals.metaxploit, et al., will eventually be deprecated and replaced by the above
// aptm: changed error text
// help: added help daemon
// -- updated help alias and help convention
// ---- added information about escaping quotes and @-aliases
// if: returns reference when result is a raw (non command) function
// chop: fixed missing char(10) that was preventing full usage info from printing
// scpm: removed blod tag from local ip in trajectory prompt to make it a little easier to read
// -- hopefully :\
// kore: added -S for a more paranoid secure routine
// kore: fixed weird bug that was causing kore -s to run twice in some cases
//
// ez_clip: all ez clips can be escaped with \
// --eg: \@a , \" , \@o, \@home, etc...
// -- this will help with using variables in macros
// -- allowing them to be set when the macro is run, not when it's made
// purge: changed over two legacy "purge -d" internal calls to "purge -x"
//
// htop: reformatted usage info
// outmon: reformatted usage info
// hashim: reformatted usage info
// macro: removed bold tag from output
// purge: -o option will no longer remove the stack_pool
//
// purge: -o option will no longer remove the macros registry
// purge: added -m; clear macros
// purge: changed -m; clear daemons to -d; clear daemons
// purge: changed -d; purge xploits to -x; purge xploits
// purge: updated usage info
// ez_clip: added @t for target ip and @p for target port
// eg: meta link @t @p
//
// exit: removed msg check as it was a bad idea
// removed the import line for games.5pk
//
// games.5pk: is no more, it has been changed to contrib.5pk
// contrib.5pk: will contain functions and commands contributed by the community
// -- this is mainly because the other .5pks were running out of room and games.5pk had plenty of space
// --note: glosure, the daemon manager, the regex engine, htop, and check user have been moved to contrib.5pk
// -- the three games are still in contrib.5pk
// -- the import code line has been moved to just under the import 5phinx line in 5hell.5pk
// -- formerly this line was located within the command.games function
// This marks the beginning of the great 5hell refactoring where code will be consolidated, objectified and organized
//
// macro: moved all macros to the macro registry
// --: this is a map within the custom object
// macro: added macro [-l|list]
// --: this will return a string with all macros and their definitions
// --: cob get macros (or just 'get macros') will return the macros map
// macro: added macro [-g|get] [name] to return a given macro's string
// macro: fixed hard crash in usage info
//
// do.rc: removed wildly counter-productive line from _resource_configuration
// rclean: hopefully won't shit itself anymore when using -n
// macro: added macro registry
// macro: corrected usage info
// --: creating a macro requires -s|set flag: macro [-s|set] [name] [value]
// cob: will no longer spam usage info on bad input
//
// 5hell.src: added more info to display when typing 'shell'
// db: added a warning about mismatched files when loading a local lib with a remote metaxploit object
// -- this is until i can figure out a smarter way to handle that case
// 5phinx.5pk: added _cascade function which will cascade exit if start_terminal is called
// -- this is to solve the need to manually exit 5hell if using psudo in a nested launch
// removed NIGHTLY global references
// removed more commented code
// adjusted usage info of diff and zc
// usr: added missing -a/-d flags for add and delete
//
// silentclean: will no longer spam usage info on bad input
// --: remember that now you can: gp -d " sc | return " @B [index]
// --: or lazy bones it with: gp -d sc -m
// --: will print a warning and continue to scrub locally
// glasspool: corrected typoe in help info: glaspool -> glasspool
// glasspool: added ability to specify a command or macro when initializing glasspool
// --eg: glasspool -d " echo bob " @B [index]
// code: fixed hard crash when passing invalid (or no) input to functions in the generic object handler
// -- will now warn the user if a function is required; ie no default
// -- the function will now return if the argument is required
// -- arguments with defaults are parsed as the default if no input
// -- ints wrapped in ' will be cast as strings; eg '1' == string, 1 == number
// -- you may now type null to specify the null character in this context
//
// added daemon control!!
// -- hashim, rsi, and outmon will now make use of a daemon control system
// -- when running in daemon mode a file named 5hell.d will be created in /root
// -- individual lines in this file can be removed to end a daemon without using ctrl+c
// -- cool stuff! thanks redit0!
//
// updated credits