Links
Tag cloud
Picture wall
Daily
Plugins
  • ► Play Videos
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
13 results tagged script  ✕
Automatic Updates for GeoIP2 and GeoIP Legacy Databases « MaxMind Developer Site https://dev.maxmind.com/geoip/geoipupdate/
Mon 18 May 2020 08:21:32 PM CEST archive.org

Automatic Updates for GeoIP2 and GeoIP Legacy Databases

This page provides two methods for automatically updating GeoIP2 and GeoIP Legacy binary databases.
Using GeoIP Update

MaxMind provides the GeoIP Update program, which performs automatic updates for both GeoIP2 and GeoIP Legacy binary databases. Please follow the instructions below.
Step 1 – Install GeoIP Update

Install GeoIP Update. The latest release may be downloaded from GitHub Releases. See here for installation instructions.

If you are using an older version of GeoIP Update, you may need to upgrade to GeoIP Update 4.x or later version. The 4.x and later versions meet our requirement for using TLS 1.2 or greater for all requests to our servers to keep your data secure.

Please see our upgrade guide for more information on upgrading from an older version of GeoIP Update.
Step 2 – Obtain GeoIP.conf with Account Information
For Paid GeoIP2 and GeoIP Legacy Databases

Get a partially pre-filled configuration file (may require authentication) and save it in your configuration directory (e.g., /usr/local/etc/) as GeoIP.conf. You will need to replace the YOUR_LICENSE_KEY_HERE placeholder with an active license key associated with your MaxMind account. You can see your license key information on your account License Keys page.

You may also write this file by hand using the template below (not recommended).

GeoIP.conf file - used by geoipupdate program to update databases

from http://www.maxmind.com

AccountID YOUR_ACCOUNT_ID_HERE
LicenseKey YOUR_LICENSE_KEY_HERE
EditionIDs YOUR_EDITION_IDS_HERE

Note that for geoipupdate versions less than 2.5.0, use UserId instead of AccountID and ProductIds instead of EditionIDs.

geoip db maxmind script update
MOTDs32 | MOTD Fork with some customisation and additional stats. 2017 https://erreur32.github.io/MOTDs32/
Tue 24 Mar 2020 11:27:53 AM CET archive.org

MOTDs32
MOTD Fork with some customisation and additional stats. 2017

https://asciinema.org/a/Tzr3NNF8pEB9FZ13d3kYDMBw5.png

motd linux bash sh script
Extending and Analyzing the Access Log – Welcome to netnea https://www.netnea.com/cms/apache-tutorial-5_extending-access-log/
Fri 30 Aug 2019 11:05:45 AM CEST archive.org

access.log apache bash script

access.log apache bash script
linux-sms [Wiki de sebsauvage.net] http://sebsauvage.net/wiki/doku.php?id=linux-sms
Thu 22 Mar 2018 06:45:12 PM CET archive.org

Envoi d'un SMS lors de certains événements dans les logs

Je me sers de ce script pour "fliquer" un peu l'utilisation de ma machine personnelle qui est sous Linux. Je reçois donc un SMS quand l'un des événements suivants se produit:

  • Ouverture de session d'un utilisateur.
  • Fermeture de session d'un utilisateur.
  • Échec d'ouverture de session (mauvais mot de passe)

C'est assez simple: On surveille le fichier ''/var/log/auth.log'' et quand certains événements sont détectés, on appelle l'API SMS FreeMobile.

Le script ci-dessous est vite bricolé, avec certaines choses codées en dur. Vous devrez sans doute l'adapter.

Je met le script suivant dans ''/opt/scripts/logs-sms.sh'' (sans oublier de faire mon chmod):

logs-sms.sh

#!/bin/bash
# Surveillance des logs, et envoi d'un SMS quand un utilisateur se connecte ou déconnecte.

logger "SMS: Démarrage script SMS connexions."

envoie_sms () {
   chaine="Asus: `date +%Y-%m-%d_%Hh%M` $*"
   logger "SMS: $chaine"
   curl -G -d user=UTILISATEUR -d pass=MOTDEPASSE --data-urlencode msg="$chaine" 'https://smsapi.free-mobile.fr/sendmsg'
}

# Expressions régulières pour détecter certains évènements (ouverture session, fermeture session, mauvais mot de passe)
reg_open="pam_unix.*session opened for user (utilisateur1|utilisateur2|utilisateur3|utilisateur4)"
reg_close="pam_unix.*session closed for user (utilisateur1|utilisateur2|utilisateur3|utilisateur4)"
reg_failure="pam_unix.*authentication failure.*user=(.+)"

tail -fn0 /var/log/auth.log | \
while read line ; do
   if [[ $line =~ $reg_open ]] ; then
       envoie_sms "Ouverture session ${BASH_REMATCH[1]}"
   fi
   if [[ $line =~ $reg_close ]] ; then
       envoie_sms "Fermeture session ${BASH_REMATCH[1]}"
   fi
   if [[ $line =~ $reg_failure ]] ; then
       envoie_sms "Mauvais mot de passe utilisateur ${BASH_REMATCH[1]}"
   fi
done

Puis j'ai ajouté la ligne suivante avant le ''exit 0'' dans ''/etc/rc.local'' afin que ça démarre en même temps que la machine.

nohup /bin/bash /opt/scripts/logs-sms.sh > /dev/null 2>&1 &

Notes:

  • Cela fonctionne aussi bien avec l'ouverture de sessions graphique (mdm/lightdm) que pour un ''su'' dans un terminal.
  • Je fais ''utilisateur1|utilisateur2|utilisateur3|utilisateur4'' car je ne veux surveiller que les évènements pour ces utilisateurs.
  • Vous devrez sans doute adapter les expressions régulières dans les lignes ''reg_...'' en fonction de votre système.
  • J'ai mis en dur le nom de la machine (''Asus:'')
  • Vous devrez remplacer ''UTILISATEUR'' et ''MOTDEPASSE'' par vos propres identifiants SMS API FreeMobile (connectez-vous sur votre [[https://mobile.free.fr/moncompte/|espace abonné FreeMobile]] et activez l'option pour les obtenir).
  • L'API SMS FreeMobile est gratuite et fonctionne sur tous les forfaits FreeMobile. Elle ne peut servir qu'à vous envoyer un SMS à vous-même, pas à d'autres personnes.
  • Le même genre de chose aurait pu être réalisé en modifiant la configuration de pam afin qu'il exécute le script sur certains événements d'authentification. L'avantage du script ci-dessus est qu'il peut être étendu à d'autres logs/événements que l'authentification.
  • J'aurais pu utiliser cron, mais je voulais du temps réel.
linux script bash sms event log
GitHub - StevenBlack/hosts: Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category. SHALLOW CLONE to avoid cloning too much history. https://github.com/StevenBlack/hosts
Mon 03 Jul 2017 08:10:33 PM CEST archive.org
thumbnail
host secu script
GitHub - nbs-system/php-malware-finder: Detect potentially malicious PHP files https://github.com/nbs-system/php-malware-finder
Tue 11 Apr 2017 03:37:11 PM CEST archive.org
thumbnail

PHP Malware Finder

Webshell finder,
kiddies hunter,
website cleaner.

https://github.com/nbs-system/php-malware-finder

Detect potentially malicious PHP files.

github secu debian php script
RIPS – Finding vulnerabilities in PHP application http://resources.infosecinstitute.com/rips-finding-vulnerabilities-php-application/
Tue 21 Mar 2017 03:39:21 PM CET archive.org
thumbnail
secu php script
Debian -- Details of package checkinstall in jessie https://packages.debian.org/jessie/checkinstall
Mon 28 Dec 2015 12:09:35 PM CET archive.org

checkinstall debian bash script apt

checkinstall debian bash script
Des scripts pour votre OSX - Korben http://korben.info/des-scripts-pour-votre-osx.html
Wed 22 Apr 2015 06:54:40 AM CEST archive.org
thumbnail

Script d'installation de MySQL : bash <(curl -Ls http://git.io/eUx7rg)
Script pour remettre à zéro le mot de passe MySQL : bash <(curl -Ls http://git.io/9xqEnQ)
Script pour installer un serveur VPN : bash <(curl -Ls http://git.io/1UlbJQ)
Script pour installer un WordPress : bash <(curl -Ls http://git.io/KQ_dvw)
Script pour désactiver Bonjour : bash <(curl -Ls http://git.io/q9j5Zw)
Script pour changer le port de SSH : bash <(curl -Ls http://git.io/_9fF7g)
Script pour désactiver le cache ARP d'OSX Maverick : bash <(curl -Ls http://git.io/6YzLCw)

Si vous cherchez les sources et la doc de ces scripts, c'est sur Github que ça se passe.

Mac script
userstyles - stylish - Mod https://userstyles.org/
Sat 08 Nov 2014 02:12:57 PM CET archive.org
thumbnail

https://userstyles.org/styles/82424/google-search-minimalist-theme
https://userstyles.org/styles/99456/facebook-fullscreen-mod
https://userstyles.org/styles/90894/soundcloud-pitch-black
https://userstyles.org/styles/82967/twitch-dark-view
https://userstyles.org/styles/62954/utube-black-2k14
https://userstyles.org/styles/101553/twitter-mehranize

userstyles.org mod firefox browser script custom stylish
dronecode https://www.dronecode.org
Fri 17 Oct 2014 08:28:50 AM CEST archive.org
thumbnail
dronecode code source drone script
Script Google Contact https://script.google.com/macros/s/AKfycby0ndjJWK-FPTjZhmTiUR_Nm_XLSSQ8gS5nXkfz8lrs3SmzAvU/exec
Sat 04 Jan 2014 05:39:27 PM CET archive.org

https://script.google.com/macros/s/AKfycby0ndjJWK-FPTjZhmTiUR_Nm_XLSSQ8gS5nXkfz8lrs3SmzAvU/exec

Script Google Contact

Script Google Contact
How to Hide your Email Address on Web Pages http://www.labnol.org/internet/hide-email-address-web-pages/28364/
Sat 04 Jan 2014 05:30:24 PM CET archive.org
thumbnail
How To script webmaster
1527 links, including 7 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn