Cari
124 buku memuat "bin bash" · halaman 4 dari 7
Hands-on: Gaining Root and Administrator Access in Linux and Windows (en)
… root without a password. Exploit: With this capability, we can run a shell as root using: sudo find . -exec /bin/bash \; Now you have root access. Method: Kernel Exploits (Dirty Pipe) Certain versions of Ubuntu are sometimes vulnerable to kernel exploits …
Open5gs: IMS Install Ubuntu 22.04
… sh menjadi, vi /root/hss.sh Start HSS menggunakan hss.sh #!/bin/bash # -------------------------------------------------------------- # Include JAR Files # -------------------------------------------------------------- cd /opt/OpenIMSCore/FHoSS export JAVA …
Backup: Restic
… Approach: Every 1 Minute Using systemd Timer Step 1: Create MySQL Dump Script /usr/local/bin/mysql_backup_restic.sh #!/bin/bash # Settings MYSQL_USER="root" MYSQL_PASS="yourpassword" BACKUP_DIR="/var/backups/mysql" DUMP_FILE="$BACKUP_DIR/mysql_dump.sql …
SchoolOnffLine: Repository Lokal Ubuntu
… building of Ubuntu mirror ##### ## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETED #!/bin/bash ## Setting variables with explanations. # # Don't touch the user's keyring, have our own instead # export GNUPGHOME=/var/data …
SMEOnffLine: Repository Lokal Ubuntu
… building of Ubuntu mirror ##### ## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETED #!/bin/bash ## Setting variables with explanations. # # Don't touch the user's keyring, have our own instead # export GNUPGHOME=/var/data …
SchoolOnffLine: Instalasi Beberapa Batch File Bermanfaat
… building of Ubuntu mirror ##### ## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETED #!/bin/bash ## Setting variables with explanations. # # Don't touch the user's keyring, have our own instead # export GNUPGHOME=/var/data …
SMEOnffLine: Menyiapkan Server Repository Ubuntu Lokal
… building of Ubuntu mirror ##### ## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETED #!/bin/bash ## Setting variables with explanations. # # Don't touch the user's keyring, have our own instead # export GNUPGHOME=/var/data …
SchoolOnffLine: Menyiapkan Server Repository Ubuntu Lokal
… building of Ubuntu mirror ##### ## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETED #!/bin/bash ## Setting variables with explanations. # # Don't touch the user's keyring, have our own instead # export GNUPGHOME=/var/data …
TCP/IP: Simple Network Management Protocol
… mode by editing the /etc/cron.daily/00webalizer script file and adding the –Q (Quiet) switch to the webalizer command like this: ! /bin/bash update access statistics for the web site if -s /var/log/httpd/access_log ; then /usr/bin/webalizer -Q fi exit …
Apache: Check kalau apache mati & restart automatis
… mati & restart automatis Sumber: https://onnocenter.or.id/wiki/index.php/Apache:_Check_kalau_apache_mati_&_restart_automatis Script #!/bin/bash if `pgrep apache2 -c` -le "0" ; then /etc/init.d/apache2 restart fi Masukan ke crontab */5 * * * * /usr/local …
Suricata: Instalasi Snorby & barnyard2
… up to date You can use this optional simple script to grab a copy of the git master and update the suricata binaries : !/bin/bash cd /tmp rm -rf /tmp/suricata mkdir suricata cd suricata /usr/bin/git clone git://phalanx.openinfosecfoundation.org/oisf.git cd …
Script Mirror Repository Ubuntu 16.04
… Mirror Repository Ubuntu 16.04 Sumber: https://onnocenter.or.id/wiki/index.php/Script_Mirror_Repository_Ubuntu_16.04 #!/bin/bash export GNUPGHOME=/var/data/mirrorkeyring /usr/bin/debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse …
Ubuntu: Install MSSQL
… unixodbc-dev Jawaban Pertanyaan tentang License Yes Yes Perbaiki Path sqlcmd echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc source ~/.bashrc sqlcmd Connect sqlcmd -S localhost …
OpenWRT: Flash Buffalo WZRHP300N
… dd:1a curl -T openwrt-19.07.0-ar71xx-generic-wzr-hp-g300nh-squashfs-tftp.bin tftp://192.168.11.1 & Buat Script vi setip.sh Isi dengan #!/bin/bash while true ; do ifconfig eth0 192.168.11.2 arp -s 192.168.11.1 02:aa:bb:cc:dd:1a done Save script di tempat …
Membuat Layanan Otomatis Start Saat Server ON
… itu di ubuntu 20.04, kita perlu mengedit file /etc/rc.local, misalnya, sudo nano /etc/rc.local Isi dengan, misalnya, !/bin/bash <your_program>.sh exit 0 Jangan lupa save file rc.local. Ganti nama <your_program>.sh dengan nama yang anda suka. Contoh isi …
Set Start Kiwix setiap Boot
… chmod 777 /root/kiwix-jalan.sh sudo chmod +x /root/kiwix-jalan.sh Edit /etc/rc.local sudo nano /etc/rc.local Isi dengan !/bin/bash /root/kiwix-jalan.sh exit 0 Save file rc.local dan beri ijin supaya dapat di execute, sudo chmod +x /etc/rc.local Edit /etc …
Perbaiki GRUB Yang Rusak di Ubuntu 9.10
Mount juga folder “dev” sudo mount -o bind /dev/ /mnt/dev/ lalu ketik perintah sudo chroot /mnt /bin/bash Semua dah selesai di mount, lalu kita tinggal menginstall kembali grubnya dengan perintah : grub-install /dev/sda5 Jika tidak ada error setelah anda …
Intel MPI Benchmark
… mkdir output_files Start the Interactive session: $ qsub -I -lnodes=n:ppn=p $ mpiexec /share/apps/benchmarks/IMB/IMB-MPI1-gnu Using a PBS Script: !/bin/bash PBS -N IMB PBS -e IMB.err PBS -o IMB.out PBS -m aeb PBS -M user PBS -l nodes=n:ppn=p PBS -l …
Dig
… dig -x 204.152.184.167 +short mx-1.isc.org. In a loop, this is a slick way to map the names in a given subnet: #!/bin/bash NET=18.7.22 for n in $(seq 1 254); do ADDR=${NET}.${n} echo -e "${ADDR}\t$(dig -x ${ADDR} +short)" done Query a different nameserver …
Openldap: Instalasi
… : John Doe displayName: John Doe uidNumber: 1000 gidNumber: 10000 userPassword: password gecos: John Doe loginShell: /bin/bash homeDirectory: /home/john shadowExpire: -1 shadowFlag: 0 shadowWarning: 7 shadowMin: 8 shadowMax: 999999 shadowLastChange: 10877 …