g0tmi1k / os-scripts Goto Github PK
View Code? Open in Web Editor NEWPersonal Collection of Operating Systems Scripts
Home Page: https://blog.g0tmi1k.com/
Personal Collection of Operating Systems Scripts
Home Page: https://blog.g0tmi1k.com/
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.
A couple of notes while playing around:
Great stuff and thanks
Hi,
after downloading vmware image of latest kali (rolling) and running os-scripts/kali-running.sh
script finished with several errors.
/usr/local/bin
is missing.make -p /usr/local/bin
and rerunning pieces of code os-scripts/kali-running.sh
which failedsass
ruby gemgem install sass
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'
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.
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
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
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
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
curl: (22) The requested URL returned error: 404 Not Found
[!] Issue downloading kali_blue_splat.png
curl: (6) Could not resolve host: www.hdwallpapers.im
[!] Issue downloading kali_black_stripes.jpg
also
[+] Installing PyCharm (Community Edition) ~ Python IDE
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
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.
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
php5 was removed from the kali-rolling sources
[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
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...
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
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.
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.
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
Link to the tracker: http://pkg.kali.org/pkg/sshuttle
You probably want to fix this: https://github.com/g0tmi1k/os-scripts/blob/master/kali-rolling.sh#L2697
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.
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
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.
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
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?
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```
This link requires authentication.
You may wanna change the link.
specific: kali-rolling.sh:705
As well as the link of oui in Aircrack section has been moved to this
Line 741 returns 403 as the website hosting this file has changed their link naming format. I was successful with changing the link to "https://dl.opendesktop.org/api/files/download/id/1461767736/90145-axiom.tar.gz"
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:
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.