Giter Site home page Giter Site logo

os-scripts's Introduction

OS-Scripts

Personal collection of Operating System (OS) scripts (and related things).


Kali Rolling

Kali Rolling (2016.1) (Debian Testing) Left: tweaked GNOME 3.18, Right: custom XFCE 4.12. Both running conky.


Kali v2.x

Kali 2.x (Debian 8) Left: tweaked GNOME 3.10, Right: custom XFCE 4.10. Both running conky.


Kali v1.x

Kali 1.x (Debian 7) Left: stock GNOME 3.4, Right: custom XFCE 4.8. Both with conky.

...Misc screenshots of JUST XFCE (no conky/ZSH/Tweaks)

os-scripts's People

Contributors

dookie2000ca avatar g0tmi1k avatar nullmode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

os-scripts's Issues

Screensaver blacks out desktop

After 10 minutes or so the screen blacks out, I'm assuming it's the screensaver and it won't return back to the desktop after moving mouse or pressing keys. Brand new install, then used post script. I can pop into ctrl+at f2 login, but can't recover f1 session.

kali-rolling.sh - Package 'php5' has no installation candidate

php5 was removed from the kali-rolling sources

http://pkg.kali.org/pkg/php5

[2016-07-12] php5 5.6.22+dfsg-2 removed from kali-rolling (Kali Repository)

Breaks on these steps

[+] (50/188) Installing rips ~ source code scanner
    E: Package 'php5' has no installation candidate

[+] (97/188) Installing b374k ~ (PHP) web shell
    E: Package 'php5-cli' has no installation candidate

[+] (170/188) Installing apache2 & php5 ~ web server
    E: Package 'php5' has no installation candidate
    E: Package 'php5-cli' has no installation candidate
    E: Package 'php5-curl' has no installation candidate

Kali 2016.2 rand-wallpaper no longer works

kali-rolling script, rand-wallpaper/xfdesktop --reload is not actually changing the wallpaper. The files are getting assigned correctly (verified by xfconf-query) but reload does nothing.

Burpsuite CA import failing

Issue with the Burpsuite CA import code failing in 2017.3 Kali rolling. Flipped to using certutil code that was commented out and looks like it works fine. The extract of CA info from prefs.js doesn't work anymore. Proposing the below code fix

#--- Extract CA
  find /tmp/ -maxdepth 1 -name 'burp*.tmp' -delete
 # export DISPLAY=:0.0
  timeout 120 burpsuite >/dev/null 2>&1 &
  PID=$!
  rm -f /tmp/burp.der
  while test -d /proc/${PID}; do
    sleep 1s
    curl --progress -k -L -f "http://localhost:8080/cert" -o /tmp/burp.der 2>/dev/null      # || echo -e ' '${RED}'[!]'${RESET}" Issue downloading burp.crt" 1>&2
    [ -f /tmp/burp.der ] && break
  done
  timeout 5 kill ${PID} 2>/dev/null \
    || echo -e ' '${RED}'[!]'${RESET}" Failed to kill ${RED}burpsuite${RESET}"
  #--- Installing CA
  if [[ -f /tmp/burp.der ]]; then
    apt -y -qq install libnss3-tools \
      || echo -e ' '${RED}'[!] Issue with apt install'${RESET} 1>&2
    folder=$(find ~/.mozilla/firefox/ -maxdepth 1 -type d -name '*.default' -print -quit)
    certutil -A -n Burp -t "CT,c,c" -d "${folder}" -i /tmp/burp.der
    timeout 15 firefox >/dev/null 2>&1
    timeout 5 killall -9 -q -w firefox-esr >/dev/null```

Is this still alive? Any alternatives?

Until the latest release of kali I still used your scripts.

Are you planning to update these scripts? Or is it a dead project?
Are there any good alternatives?

PS: Thx for these scripts, I used them many years as post-install.

Just ran this tonight bud, ... some changes maybe ?

first off, thank you, this is brilliant (as is all your output)

here are some thinks that might need a tweak, if this project is still a thing ...

[+] Cosmetics ~ Making it different each startup

################################################################## 100.0%

curl: (22) The requested URL returned error: 403 Forbidden
[!] Issue downloading Shiki-Colors-Light-Menus.tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

################################################################## 100.0%

curl: (22) The requested URL returned error: 403 Forbidden
[!] Issue downloading axiom.tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%

curl: (22) The requested URL returned error: 404 Not Found
[!] Issue downloading kali_blue_splat.png

################################################################## 100.0%
################################################################## 100.0%

curl: (6) Could not resolve host: www.hdwallpapers.im
[!] Issue downloading kali_black_stripes.jpg

################################################################## 100.0%

also

[+] Installing PyCharm (Community Edition) ~ Python IDE

################################################################## 100.0%

curl: (22) The requested URL returned error: 403 Forbidden
[!] Issue downloading pycharms-community.tar.gz
tar: This does not look like a tar archive

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
mv: cannot stat '/tmp/pycharm-community-*/': No such file or directory

################################################################## 100.0%
################################################################## 100.0%

Errors when using the new rolling 2016.1 as base

Hi

I just ran the script against a new Rolling 2016.1 release to see what kind or error we need to prepare for. (Of course not all issues are related to the script, but consider it a heads-up) I Found the following:

When disabling the screensaver:

 [+] Disabling screensaver
Invalid MIT-MAGIC-COOKIE-1 keyxset:  unable to open display ":0.0"
Invalid MIT-MAGIC-COOKIE-1 keyxset:  unable to open display ":0.0"

When fixing audio:

[+] Fixing audio issues
Selecting previously unselected package alsa-utils.
(Reading database ... 309481 files and directories currently installed.)
Preparing to unpack .../alsa-utils_1.1.0-2_amd64.deb ...
Unpacking alsa-utils (1.1.0-2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (228-4) ...
Setting up alsa-utils (1.1.0-2) ...
Processing triggers for systemd (228-4) ...
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true

Both seem to be similar.

Setting up the desktop environments we are using a deprecated command.

 [+] Configuring GNOME 3 ~ desktop environment
######################################################################## 100.0%
WARNING: The 'tracker-control' command is no longer available.
WARNING: Use 'tracker <command> [<args>]' instead...


 [+] Configuring XFCE4 ~ desktop environment
/root/Templates was removed, reassigning TEMPLATES to homedir
/root/Public was removed, reassigning PUBLICSHARE to homedir
/root/Documents was removed, reassigning DOCUMENTS to homedir
/root/Music was removed, reassigning MUSIC to homedir
/root/Pictures was removed, reassigning PICTURES to homedir
/root/Videos was removed, reassigning VIDEOS to homedir
WARNING: The 'tracker-control' command is no longer available.
WARNING: Use 'tracker <command> [<args>]' instead...

When setting-up the backgrounds we get a 404:

curl: (22) The requested URL returned error: 404 Not Found
 [!] Issue downloading kali_blue_splat.png

Iceweasel extensions are not getting installed:

[i] Enabled Iceweasel's extensions (via method #2!)
 [!] Something went wrong with the FoxyProxy iceweasel extension (did any extensions install?). Skipping...

The configuration of Geany fails. Would need to figure out how to make geany write write its config on a non clean exit. Possibly just include the geany.conf in the script.

[+] Installing Geany ~ GUI text editor
Selecting previously unselected package geany-common.
(Reading database ... 320246 files and directories currently installed.)
Preparing to unpack .../geany-common_1.26+dfsg-1_all.deb ...
Unpacking geany-common (1.26+dfsg-1) ...
[...]
Setting up geany (1.26+dfsg-1) ...
Processing triggers for libc-bin (2.21-7) ...
touch: cannot touch ‘/root/.config/geany/geany.conf’: No such file or directory
sed: can't read /root/.config/geany/geany.conf: No such file or directory
sed: can't read /root/.config/geany/geany.conf: No such file or directory
sed: can't read /root/.config/geany/geany.conf: No such file or directory
sed: can't read /root/.config/geany/geany.conf: No such file or directory
[...]

Can't install wine (x64)

 [+] Configuring WINE (x64)
E: Unable to locate package wine-bin:i386
 [!] Issue with apt-get

I'm not sure what the new package new would be.

MingGW Show some error (same as earlier)

 [+] Installing MinGW (Windows) ~ cross compiling suite
######################################################################## 100.0%
Executing wine (wineserver64) 1.8.1 on Debian Kali Linux Rolling (amd64).
If something goes wrong, please rerun with "WINEDEBUG=err+all wine"
for more detailed debugging output.
Invalid MIT-MAGIC-COOKIE-1 keymingw-get.exe: *** WARNING *** C:\MinGW\var/lib/mingw-get/data/profile.xml: user configuration file missing
mingw-get.exe: *** INFO *** C:\MinGW\var/lib/mingw-get/data/defaults.xml: trying system default configuration

Veil fails for some reason:

 [+] Installing veil-evasion framework ~ bypassing anti-virus
 [!] veil-evasion has issues with x64. Skipping...

Kali - Rolling - VMWare Image, missing folder

Hi,

after downloading vmware image of latest kali (rolling) and running os-scripts/kali-running.sh script finished with several errors.

  • Folder /usr/local/bin is missing.
    fixed by running make -p /usr/local/bin and rerunning pieces of code os-scripts/kali-running.sh which failed
  • Missing sass ruby gem
    fixed by running gem install sass

DEBUG LOG

asciinema

 [+] (55/188) Installing asciinema ~ CLI terminal recorder
Downloading asciinema v1.2.0 for linux-amd64...
######################################################################## 100.0%
Warning: couldn't find ~/bin or /usr/local/bin in your $PATH
Installing to /tmp/os-scripts/asciinema...
Success.

graudit

 [+] (52/188) Installing graudit ~ source code auditing
git is already the newest version (1:2.8.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./kali-rolling.sh: line 2074: /usr/local/bin/graudit-git: No such file or directory
 [!] Issue with writing file
chmod: cannot access '/usr/local/bin/graudit-git': No such file or directory

conky

Setting up conky (1.10.2-1) ...
./kali-rolling.sh: line 1616: /usr/local/bin/start-conky: No such file or directory
 [!] Issue with writing file

random wallpaper

./kali-rolling.sh: line 745: /usr/local/bin/rand-wallpaper: No such file or directory
 [!] Issue with writing file
bash: /usr/local/bin/rand-wallpaper: No such file or directory

update OS from network repositories

Setting up dradis (3.0.0~rc1-0kali1+b2) ...
/usr/lib/ruby/vendor_ruby/tilt/less.rb:2:in `require': cannot load such file -- less (LoadError)
    from /usr/lib/ruby/vendor_ruby/tilt/less.rb:2:in `<top (required)>'
    from /usr/lib/dradis/vendor/bundle/ruby/2.3.0/gems/sprockets-2.11.0/lib/sprockets.rb:101:in `require'
    from /usr/lib/dradis/vendor/bundle/ruby/2.3.0/gems/sprockets-2.11.0/lib/sprockets.rb:101:in `<module:Sprockets>'
    from /usr/lib/dradis/vendor/bundle/ruby/2.3.0/gems/sprockets-2.11.0/lib/sprockets.rb:3:in `<top (required)>'
    from /usr/lib/dradis/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-2.2.4/lib/sprockets/railtie.rb:5:in `require'
    from /usr/lib/dradis/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-2.2.4/lib/sprockets/railtie.rb:5:in `<top (required)>'
    from /usr/lib/dradis/config/application.rb:9:in `require'
    from /usr/lib/dradis/config/application.rb:9:in `<top (required)>'
    from /usr/lib/dradis/config/environment.rb:2:in `require'

2016.2 vbox image

hey there,
I love your script but i'm building a new VM based on the OVA for 2016.2 and its throwing errors. Just curious if this is expected. This is my first 2016.2 but didn't expect that much of a difference from .1

bash_aliases command not found

Hi

Thanks for the script. There is an error on bash_aliases file

'''
/root/.bash_aliases:1: command not found: -e
/root/.bash_aliases:4: command not found: -e
'''
Somehow script added "-e" to every alias line.

Besides some icons are missing which is not a big deal.

Multible kernel issue due to the rolling repo

Hi together,

first of all, love your script, tasty stuff! But since the last couple of weeks it wont succeed anymore. If i start with a fresh amd64 image (full), it leads to a mess. I guess it's because of the the latest 4.2.0 image in the rolling repo. After step 'Updating OS' it will remove nearly the complete meta 'kali-linux-full' while its trying to upgrade the build.
It will only succeed if I upgrade everything before running kali.sh or, like i did in my fork, if i comment out the source.list adaptation. Could you please have a look on it? Many thx

p.s. sorry for my bad english :)

Edit:

Two things in addition. As a result of that issue the XFCE environment get some, lets say cosmetic defects. The first bug is that the Icons in the panel get lost but only that from the kali menue (like 'Information Gathering', 'Wireless Attacks' and so on). Tried to fix it with your XFCE Script from the board, g0tmi1k but it wont bring back the icons
"curl -s http://pastebin.com/raw.php?i=58wsGhBD | tr -d '\15\32' | bash"

Second one is the Conky Desktop Widget. There the transparency get lost and the background color went to green or red. This one i could fix in some way. I adjust these two settings:

  • background yes
  • background no
  • own_window_argb_visual yes # GNOME & XFCE yes, KDE no
  • own_window_argb_visual no # GNOME & XFCE yes, KDE no

After all thats nothing too critically, sure but maybe the solution is relatively easy to adapt.

If i should deliver more details, please let me know

Kind regards

xfce doesn't replace gnome kali 2017.2

in both a fresh 2017.2 as well as a dist-upgrade 2017.1 (where xfce had previously replaced gnome) xfce does not replace gnome. With the former instance there are no errors related to the XFCE installation part of the rolling script.

Rolling items

A couple of notes while playing around:

  • fresh install of rolling today is 4.3.0 kernel via uname -r, which cannot be found by apt-get during the install kernel headers section. However, if not using VMWareTools and using OpenVMTools this is irrelevant, the OpenVMTools gets the proper kernel info and build fine. Just odd.
  • While testing to see why 4.3.0 was not being found/installed, I performed a dist-upgrade which today gets the default rolling distro to 4.4.0. However, the installer then bails out during Update OS from network repositories section because it finds 2 kernels
  • There are redundant sections that add the right repos to /etc/apt/sources.list
  • apt-get couldn't find a rolling version of shutter
  • some little things like conky not being transparent is easy to fix

Great stuff and thanks

Display=:0.0 and gnome issues

Updating my fork script recently and noticed that the "export DISPLAY=:0.0" makes for epic fails and lots of MIT-MAGIC-COOKIE failures. Resolved by simply commenting out the export statements. Also note that running the script as root via sudo will result in a fair number of errors throw, based on the new 2017.3 Kali.

switching desktop environment issue

After running kali-rolling.sh and rebooting, the default desktop environment is Xfce. Thought I perfer GNOME so I used update-alternatives --config x-session-manager and chose GNOME.
After logging out, turns out to be Xfce again. So I tried switch to GNOME when logging in manually, only GNOME on Wayland works, GNOME and GNOME Classic just go straight to Xfce.

It's that a bug or just I did something wrong?

idea about trap bash

The background: my network sucks all the time, so I wanna skip some small parts such as downloading LibreOffice and oui file (3kB/s wtf) by using Ctrl+C like "wifite".
So my solution is:
trap "echo -e '\n\n${YELLOW}[*] whatever warning message \n\n${RESET}'" SIGINT

P/s: You can use Ctrl+D to stop whole script instead

New Kali 2017.1 issues

When I run the kali-rolling-sh on Kali 2017.1 it seems to have some issues. Where you aware of these? Just curious.

Thx

"Open terminal here" not working

When right clicking and choosing Open terminal here inside of folder - it opens up a terminal with previous working directory.
The issue is noticed in Kali Rolling

Feature Request: Modular installation

hi,
great work on the script.
any chance to have this script being somewhat more modular.
i think you're familier with lazykali, so maybe something along the lines of that.
thanks !
roy

Download failed for '90145-axiom.tar.gz'

Greetings g0tmi1k,

thanks for all the fresh updates so far, script is always first choice!

Just a 'curl' to rework but this one is a little showstopper.
The theme download fail with a 403 forbidden but the script won't skip additional steps. Like line 707-709

So here we get a 403
https://github.com/g0tmi1k/os-scripts/blob/master/kali-rolling.sh#L705

And here's a little one which might do it
curl -O -J --progress -k -L -f 'https://www.ppload.com/api/files/download?id=1461767736' -H 'Referer: https://www.xfce-look.org/content/show.php/axiom+xfwm?content=90145' --compressed

Regards

Dead Link

There is a dead link to a wallpaper on line 1015. Not a big issue just thought I would let you know.

By the way thanks for the script. I like it a lot.

Foxyproxy compatibility issues with firefox-esr

Note that FoxyProxy plugin is incompatible with the firefox-esr package in Kali rolling now. Requires to use FoxyProxy v3.6.5. Replacing code therefore with:

#--- FoxyProxy Basic echo -n '[4/11]'; timeout 300 curl --progress -k -L -f "https://addons.mozilla.org/firefox/downloads/file/579775/foxyproxy_basic-3.6.5-fx+sm+tb.xpi?src=version-history" \ -o "${ffpath}/[email protected]" \ || echo -e ' '${RED}'[!]'${RESET}" Issue downloading 'FoxyProxy Basic'" 1>&2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.