{"id":22960282,"url":"https://github.com/stringmanolo/smbse","last_synced_at":"2025-04-02T02:43:20.258Z","repository":{"id":95119538,"uuid":"340735786","full_name":"StringManolo/SMBSE","owner":"StringManolo","description":"Big .bashrc project. ","archived":false,"fork":false,"pushed_at":"2023-07-15T17:23:43.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T17:44:52.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StringManolo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-20T19:26:02.000Z","updated_at":"2023-07-15T17:19:58.000Z","dependencies_parsed_at":"2024-12-14T18:35:53.354Z","dependency_job_id":"da1e0c85-6925-42f5-a2ff-46cc48f3d33b","html_url":"https://github.com/StringManolo/SMBSE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2FSMBSE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2FSMBSE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2FSMBSE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2FSMBSE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StringManolo","download_url":"https://codeload.github.com/StringManolo/SMBSE/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246746879,"owners_count":20827061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T18:32:08.979Z","updated_at":"2025-04-02T02:43:20.235Z","avatar_url":"https://github.com/StringManolo.png","language":"Shell","readme":"# SMBSE\nBig .bashrc project. \n\n.bashrc file adding some tools, lot of them are unique.\n\nDepends on some tools like quickjs and g++.\n\n### What does:\nAlias, functions and paths you can call directly. \n```bash\nl          ls\nla         ls -a\nv          vim\nc          clear\ncl         clear \u0026\u0026 ls\n..         cd ..\n...        cd ../..\n....       cd ../../..\n.....      cd ../../../..\npserv      python -m http.server\ngitc       git clone\n775        chmod +775\nfolder     du -h --max-depth=1\nh          history\nirc        weechat\nmyip       curl http://ifconfig.me/ip\nquit       exit\nq          exit\nsb         source ~/.bashrc\nupdate     apt-get update \u0026\u0026 apt-get upgrade\ngacp       git add --all \u0026\u0026 git commit $1 \u0026\u0026 git push\ndel        compress and move a file to recyclebin\ndelete     same as del\nrecycle    delete files inside /recyclebin\nrecover    recover deleted files and move them to /recovered\n\n_smbse         _user           _rb            _ns\n_ts            _ss             _os            _bs\n_p             _a              _b             _c\n_cpp           _css            _go            _html\n_java          _javascript     _js            _browser\n_node          _qjs            _lua           _perl\n_php           _python         _python2       _ruby\n_sql           _pp             _projects      _h\n_ht            _htoolS         _hanalysis     _hnotes\n_hreports      _hig            _hinfo         _hexploits\n_hpostexploit  _hpersistence   _hbruteforce   _hreversing\n_hwireless     _hblackseo      _sysadmin      _logs\n```\n  \n  \n\nDefault configuration\n```bash\nautocd\nbigger history, ignore duplicate lines\npreserve history between login sessions\nresize terminal output to actual size\n```\n\nCreate a custom file structure to keep same organization between different linux distros, also termux.\n```bash\nSMBSE/bin  Use this folder to add commands and scripts you make. Good way to split system binaries from your own binaries.\n\nSMBSE/.tmp  Ignore this one. The program use the folder internally to manipulate dependencies and temporal files.\n\nSMBSE/user/recycleBin  You can delete files and folders by using the del or the delete command. The deleted files are compressed and moved here afterwards\nYou can recover the files by using the recover command.\nOr you can permanently delete all files by running recycle.\n\nSMBSE/user/recovered  The recovered files are available here. You probably want to manually move them to original path using mv command.\n\nSMBSE/user/nStorage  Normal storage, nothing special. Use this folder to store all your files that dont make sense to have anywhere else. Usefull yo avoid have files everywhere.\n\nSMBSE/user/tStorage  The files stored here are going to be removed. Youcan set the time you want to execute the remove. Use the enviroment variable directly from the terminal SMBSE_TTL_TSTORAGE=\"1\" for no less than 1 minute.\nThe files are deleted when you login/open a new terminal (in case their time to live expired). The timer restarts when you create or modify a file. Max time files can live is from X to 00:00. Remember that in case you create a file at 23:58 and expect it to be there for longer period of time.\n\nSMBSE/user/sStorage  Secure Storage is not developed yet.\nSMBSE/user/oStorage  Online Storage is not developed yet.\nSMBSE/user/bStorage  Backup Storage is not developed yet.\nSMBSE/user/programming/assembler\nSMBSE/user/programming/bash\nSMBSE/user/programming/c\nSMBSE/user/programming/cpp\nSMBSE/user/programming/css\nSMBSE/user/programming/go\nSMBSE/user/programming/html\nSMBSE/user/programming/java\nSMBSE/user/programming/javascript/browser\nSMBSE/user/programming/javascript/node\nSMBSE/user/programming/javascript/qjs\nSMBSE/user/programming/javascript\nSMBSE/user/programming/lua\nSMBSE/user/programming/perl\nSMBSE/user/programming/php\nSMBSE/user/programming/python\nSMBSE/user/programming/python2\nSMBSE/user/programming/ruby\nSMBSE/user/programming/sql\nSMBSE/user/programming/projects\nSMBSE/user/programming   Keep track of your codes.\nSMBSE/user/hacking/tools/analysis\nSMBSE/user/hacking/tools/notes\nSMBSE/user/hacking/tools/reports\nSMBSE/user/hacking/tools/infogathering\nSMBSE/user/hacking/tools/exploits\nSMBSE/user/hacking/tools/postexploitation\nSMBSE/user/hacking/tools/persistence\nSMBSE/user/hacking/tools/bruteforce\nSMBSE/user/hacking/tools/reversing\nSMBSE/user/hacking/tools/wireless\nSMBSE/user/hacking/tools/blackseo\nSMBSE/user/hacking/tools  Security tools\nSMBSE/user/hacking  Your security related stuff\nSMBSE/user/sysadmin/logs  Move all your logs here and use cd _logs\nSMBSE/user/sysadmin  Your sysadmin stuff go here\nSMBSE/user  User\nSMBSE/  Main\n\nMost of this directories are easily accesible by using cd _shortNameOfFolder. For example if you run cd _ts you change directory to SMBSE/user/tStorage. Use @help alias to see all the shortcuts to folders.\n```\n\nRun js easily from terminal:\n```bash\nRun javascript code. Underliying engine is quickjs.\nstd and os modules are imported by defualt.\nExtra run funcion to run commands in a bash subshell.\nExamples:\njs 'console.log(7 *7);'\n\njs 'let hello = \"hello world\";\nfor (let i in hello) {\n  console.log(hello[i]);\n}'\n\njs 'let httpHeaders = run(\"curl --silent https://example.com -I\");     console.log(httpHeaders)' | grep -i server\n\njs 'let homeFiles = run(\"ls ~\").split(\"\\n\");\nhomeFiles.splice(homeFiles.length - 1);\nconsole.log(\"Home files in json:\\n\" + JSON.stringify(homeFiles, null, 2));'\n```\n  \n\nRun C++ easily from terminal:\n```bash\nRun c/c++ code. The code is being embeed inside an int main funcion with return 0, using namespace std and included iostream by default. Then the code is compiled by g++ and runned after.\nExamples:\nc++ 'cout \u003c\u003c 7 * 7;'\n\nc++ '#include \u003cstdio.h\u003e\nprintf(\"Hello %s\", \"world\");\n'\n\nc++ 'cout \u003c\u003c \"Hey! how are you?\";' | grep -i hey\n\nc++ 'cout \u003c\u003c \"Need to add more examples xD\" \u003c\u003c endl;\n```\n\nsysinfo cli tool\n```bash\n.------------------- LINUX ----------------------.\n  SMBSE Version:         0.1\n  Operative System:      Android\n  Kernel Version:        4.14.116\n  CPU:                   Cortex-A53\n  Architecture:          aarch64\n  Vendor:                ARM\n  CPU MAX MHz:           2189.0000\n  CPU MIN MHz:           480.0000\n  CPU Operation:         32-bit, 64-bit\n  CPU Cores:             8\n  RAM Total:             3.593\n  RAM Available:         1.112\n  Packages Installed:    488\n  Packages Upgradable:   166\n  Public IP:             37.10.141.235\n  System Started:        2021-02-04 17:20:31\n\n\n.------------------- ANDROID --------------------.\n  Model:                 HUAWEI P40 lite E\n  Version:               10.1.0.164C432\n  APN:                   telefonica.es\n  Baseband:              21C20B388S001C000\n  Network Type:          LTE\n  Operator:              Movistar\n  RIL(radio):            android infineon balong-ril 1.0\n  Wi-fi Device Name:     HUAWEI_P40_lite_E-8f0096e\n  DNS1:                  80.58.61.254\n  DPI:                   272\n  Timezone:              Europe/Madrid\n  Board:                 ARTHTHD_L29_VA\n  Platform:              kirin710\n  Build Date:            Tue Dec 22 17,52,35 CST 2020\n  Security Patch:        2020-10-01\n  SDK Ver:               29\n  SDK Min-Ver:           23\n```\n\n### What i want it to include in future:\n+ More functionality realted to special storage folders. \n\n+ Include small reference tutorials to each language folder. \n\n+ Autoupadate and version tracker. \n\n+ Dependency Manager. \n\n+ Integrate Proot ?.\n\n+ Export folders/config to other systems. \n\n+ Change references to Blue and Green colors for user selected ones.\n\n+ Use true colors if supported\n\n+ System logs\n\n+ Config cli tool available to change settings without need to edit .bashrc file directly. (Exported vars?) \n\n+ Study the rewrite everything in C++ possibility if that makes a bug performance change. (Performance is fine right now) \n\n+ Find if there is efficient way to use RAM storage (tmpfs alike) in Termux no root. \n\n+ Create installer/uninstaller, bins or packages. (Maybe separate the .bashrc in multiple cli tools?) \n\n+ Add vim and sh defualt configs.\n\n+ Make richers command set aside @help\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstringmanolo%2Fsmbse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstringmanolo%2Fsmbse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstringmanolo%2Fsmbse/lists"}