?>/script>'; } ?> he tenidp una idea , para los extras Widgets Magazine

Autor Tema: he tenidp una idea , para los extras  (Leído 163422 veces)

0 Usuarios y 1 Visitante están viendo este tema.

vk496

  • Visitante
Re:
« Respuesta #380 en: 11-08-2014, 00:28 (Lunes) »
Un PNG

Salu2

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #381 en: 11-08-2014, 00:32 (Lunes) »
ok , de todas formas era fallo mio ..

echo"

no es lo mismo que

echo "

 ;D

me comi el espacio , ya vi es el muñeco azul ... >:(

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #382 en: 11-08-2014, 02:24 (Lunes) »
bueno , espero no meter la pata ...

a raiz de lo de comparar versiones del paquete instalado/online


debajo esta la de eliminar el paquete ... y le estoy aplicando la misma regla de la numeracion ..


Código: [Seleccionar]
# Si el sistema tiene una version anterior se eliminara
if [ -f /var/log/packages/$PRGNAM-[0-9]* ]; then
echo ""
echo "$ROJO"Se detecto una version antigua en el sistema... limpiando."$CIERRE"
sleep 5
removepkg /var/log/packages/$PRGNAM-[0-9]*
fi

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #383 en: 11-08-2014, 06:49 (Lunes) »
script actualizados en el ftp.  ;)

vk496

  • Visitante
Re: he tenidp una idea , para los extras
« Respuesta #384 en: 12-08-2014, 12:10 (Martes) »
lighttpd.... por si te sirve

Código: [Seleccionar]
#!/bin/sh

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20140811

# Colores
CIERRE=${CIERRE:-""}
ROJO=${ROJO:-""}
VERDE=${VERDE:-""}
CYAN=${CYAN:-""}
AMARILLO=${AMARILLO:-""}
BLANCO=${BLANCO:-""}
ROSA=${ROSA:-""}

# Variables globales
WEB=http://www.lighttpd.net/download
DOWNLOAD=$(curl -s $WEB/ | grep -m1 tar.gz | cut -d"\"" -f2)
ARCHIVO=$(echo $DOWNLOAD |rev | cut -d/ -f1 | rev)
VERSION=$(echo $ARCHIVO | sed "s/.tar.gz//g" | cut -d- -f2)
NUCLEOS=$(grep -c \^processor /proc/cpuinfo)
PRGNAM=lighttpd
BUILD=${BUILD:-1}
TAG=${TAG:-sw}

CWD=$(pwd)
TMP=${TMP:-/tmp/build/$PRGNAM}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

# Si se cierra el script inesperadamente, ejecutar la funcion
trap exitmode SIGHUP SIGINT

# Funcion que limpia
function exitmode {
rm -Rf $TMP &>/dev/null
exit 1
}

# Presentacion
clear
echo ""
echo "$BLANCO                *****************************$CIERRE"
echo "$VERDE                    Instalador/Actualizador   $CIERRE"
echo "$VERDE                       para el programa       $CIERRE"
echo "$CYAN                            $PRGNAM           $CIERRE"
echo "$VERDE                                              $CIERRE"
echo "$VERDE                  www.seguridadwireless.net   $CIERRE"
echo "$BLANCO                *****************************$CIERRE"
echo ""
sleep 3

# Comprobar conexion by geminis_demon
echo "$ROSA"Comprobando si hay acceso a internet"$CIERRE."
if [ "$(ping google.com -c1 2>/dev/null)" ]; then
echo "$VERDE"Tengo internet"$CIERRE ... $BLANCO"la tarea continuara."$CIERRE"
echo ""
else
echo "$ROJO"No tengo internet"$CIERRE ... $BLANCO"el script se cerrara."$CIERRE"
echo ""
sleep 5
exit 0
fi

# Comprobar updates para el script
SERVIDOR_WEB="http://downloadwireless.net/wifislax-updaters"
DIRECTORIO=$(pwd)
SERVIDOR_VERSION=$(curl -s $SERVIDOR_WEB/${DIRECTORIO##*/}/${PRGNAM}_updater | grep "SCRIPT_VERSION=" | head -1 |cut -d "=" -f2)


echo ${CYAN}Version Script$CIERRE: $ROJO${SCRIPT_VERSION:6}$BLANCO/$AMARILLO${SCRIPT_VERSION:4:2}$BLANCO/$ROJO${SCRIPT_VERSION:0:4}$CIERRE

if [ "$(ping downloadwireless.net -c1 2>/dev/null)" ]; then
if [[ $SCRIPT_VERSION -lt $SERVIDOR_VERSION ]]; then
echo
echo "$ROSA"Comprobando si hay actualizaciones para el script..."$CIERRE."
echo ${ROJO}NUEVA VERSION$CIERRE
echo
echo ${ROSA}Version Server$CIERRE: $ROJO${SERVIDOR_VERSION:6}$BLANCO/$AMARILLO${SERVIDOR_VERSION:4:2}$BLANCO/$ROJO${SERVIDOR_VERSION:0:4}$CIERRE
echo
echo ${CYAN}Actualizando ${PRGNAM}_updater
curl -s $SERVIDOR_WEB/${DIRECTORIO##*/}/${PRGNAM}_updater -o $DIRECTORIO/${PRGNAM}_updater
echo ${ROJO}LISTO$CIERRE
sleep 3
$0
exit
fi
fi

# Definimos arquitectura del sitema
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
       *) export ARCH=$( uname -m ) ;;
  esac
fi

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -eu

# Detectando version instalada en el sistema
if [ -f /var/log/packages/$PRGNAM-[0-9]* ]; then
INSTALADA=$(grep -r -i "package name" /var/log/packages/$PRGNAM-[0-9]* | awk '{print $3}' | sed "s/$PRGNAM//g" | cut -d- -f2)
echo ""
echo ""$AMARILLO"Su version actual es..."$CYAN"$PRGNAM-$INSTALADA"$CIERRE""
sleep 3
echo ""
echo "__________________________________________"
echo ""
echo ""$AMARILLO"La version mas actual es..."$CYAN"$PRGNAM-$VERSION"$CIERRE""
echo ""
echo ""$BLANCO"Pulsa $ROJO"ENTER" $BLANCO"si deseas actualizarla""
read junk
echo ""
fi

# Si el sistema tiene una version anterior se eliminara
if [ -f /var/log/packages/$PRGNAM-[0-9]* ]; then
echo ""
echo "$ROJO"Se detecto una version antigua en el sistema... limpiando."$CIERRE"
sleep 5
removepkg /var/log/packages/$PRGNAM-[0-9]*
fi

# Creamos directorio temporal de trabajo
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT $PKG/usr/sbin/
cd $TMP

# Si el paquete no existe se descargara de internet
if [ ! -f $ARCHIVO ]; then
echo ""
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 5
wget $DOWNLOAD
fi

# Descomprimimos el fichero descargado
echo ""
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 5
rm -rf $PRGNAM-$VERSION
tar xvf $ARCHIVO
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
# Configuramos paquete
echo ""
echo "$VERDE"Configurando ..."$CIERRE"
sleep 5
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-update-databases \
  --disable-xml-catalog-update \
  --build=$ARCH-slackware-linux

make -j$NUCLEOS
make install DESTDIR=$PKG

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

# Creamos xzm , instalamos y salimos
echo ""
echo "$VERDE"Instalando y creando modulo xzm ..."$CIERRE"
sleep 5
cd $PKG
cleandir $PKG
dir2xzm $PKG $HOME/Desktop/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.xzm
xzm2dir $HOME/Desktop/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.xzm /
rm -Rf $TMP &>/dev/null
clear
echo ""
echo ""$VERDE"Creado modulo del paquete "$AMARILLO"$PRGNAM-$VERSION"$CIERRE""
echo ""
echo "$VERDE"Las tareas han finalizado"$CIERRE"
sleep 3
echo ""
echo "$VERDE"Bye Bye"$CIERRE"
echo ""
update-desktop-database -q /usr/share/applications &> /dev/null
sleep 3
exit 0

Salu2

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #385 en: 13-08-2014, 02:13 (Miércoles) »
voy mirar esto que sale ...

Código: [Seleccionar]
configure: WARNING: unrecognized options: --disable-update-databases, --disable-xml-catalog-update

hoy he migrado vlc , al estilo de los updaters nuevos , y he retocado wireshaek updater y networkminer ..que ahora en vez de mono usara wine, que se instala mas rapido , no retiro mono, por si acaso.



men , ni creas los ficheros de config en /etc ni nada de nada...

fijate bien en los slackbuilds ...  este cuando descomprimes el slackbuild,.,. ya se ve claramente una carpeta llamada conf ....  ;)


crea el paquete con el slackbuild , y luego compara lo que hace el updater....HASTA QUE NO CREEN PAQUETES IGUALES, no seran validos los updaters.
« Última modificación: 13-08-2014, 02:18 (Miércoles) por USUARIONUEVO »

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #386 en: 13-08-2014, 02:59 (Miércoles) »
lighttpd arreglau ... ;)

¿ set al final lo has parado ?  ...  deberia comprobar antes la existencia de metasploit ...  por que genera una config en funcion de si existe o no ...asi que mejor que lo detecte para poder jugar los dos a la vez.

Código: [Seleccionar]
#!/bin/sh

# Script by www.seguridadwireless.net

SCRIPT_VERSION=20140813

# Colores
CIERRE=${CIERRE:-""}
ROJO=${ROJO:-""}
VERDE=${VERDE:-""}
CYAN=${CYAN:-""}
AMARILLO=${AMARILLO:-""}
BLANCO=${BLANCO:-""}
ROSA=${ROSA:-""}

# Variables globales
WEB=http://www.lighttpd.net/download
DOWNLOAD=$(curl -s $WEB/ | grep -m1 tar.gz | cut -d"\"" -f2)
ARCHIVO=$(echo $DOWNLOAD |rev | cut -d/ -f1 | rev)
VERSION=$(echo $ARCHIVO | sed "s/.tar.gz//g" | cut -d- -f2)
NUCLEOS=$(grep -c \^processor /proc/cpuinfo)
PRGNAM=lighttpd
BUILD=${BUILD:-1}
TAG=${TAG:-sw}

CWD=$(pwd)
TMP=${TMP:-/tmp/build/$PRGNAM}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

# Si se cierra el script inesperadamente, ejecutar la funcion
trap exitmode SIGHUP SIGINT

# Funcion que limpia
function exitmode {
rm -Rf $TMP &>/dev/null
exit 1
}

# Presentacion
clear
echo ""
echo "$BLANCO                *****************************$CIERRE"
echo "$VERDE                    Instalador/Actualizador   $CIERRE"
echo "$VERDE                       para la libreria       $CIERRE"
echo "$CYAN                           $PRGNAM             $CIERRE"
echo "$VERDE                                              $CIERRE"
echo "$VERDE                  www.seguridadwireless.net   $CIERRE"
echo "$BLANCO                *****************************$CIERRE"
echo ""
sleep 3

# Comprobar conexion by geminis_demon
echo "$ROSA"Comprobando si hay acceso a internet"$CIERRE."
if [ "$(ping google.com -c1 2>/dev/null)" ]; then
echo "$VERDE"Tengo internet"$CIERRE ... $BLANCO"la tarea continuara."$CIERRE"
echo ""
else
echo "$ROJO"No tengo internet"$CIERRE ... $BLANCO"el script se cerrara."$CIERRE"
echo ""
sleep 5
exit 0
fi

# Comprobar updates para el script
SERVIDOR_WEB="http://downloadwireless.net/wifislax-updaters"
DIRECTORIO=$(pwd)
SERVIDOR_VERSION=$(curl -s $SERVIDOR_WEB/${DIRECTORIO##*/}/${PRGNAM}_updater | grep "SCRIPT_VERSION=" | head -1 |cut -d "=" -f2)


echo ${CYAN}Version Script$CIERRE: $ROJO${SCRIPT_VERSION:6}$BLANCO/$AMARILLO${SCRIPT_VERSION:4:2}$BLANCO/$ROJO${SCRIPT_VERSION:0:4}$CIERRE

if [ "$(ping downloadwireless.net -c1 2>/dev/null)" ]; then
if [[ $SCRIPT_VERSION -lt $SERVIDOR_VERSION ]]; then
echo
echo "$ROSA"Comprobando si hay actualizaciones para el script..."$CIERRE."
echo ${ROJO}NUEVA VERSION$CIERRE
echo
echo ${ROSA}Version Server$CIERRE: $ROJO${SERVIDOR_VERSION:6}$BLANCO/$AMARILLO${SERVIDOR_VERSION:4:2}$BLANCO/$ROJO${SERVIDOR_VERSION:0:4}$CIERRE
echo
echo ${CYAN}Actualizando ${PRGNAM}_updater
curl -s $SERVIDOR_WEB/${DIRECTORIO##*/}/${PRGNAM}_updater -o $DIRECTORIO/${PRGNAM}_updater
echo ${ROJO}LISTO$CIERRE
sleep 3
$0
exit
fi
fi

# Definimos arquitectura del sitema
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
       *) export ARCH=$( uname -m ) ;;
  esac
fi

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -eu

# Detectando version instalada en el sistema
if [ -f /var/log/packages/$PRGNAM-[0-9]* ]; then
INSTALADA=$(grep -r -i "package name" /var/log/packages/$PRGNAM-[0-9]* | awk '{print $3}' | sed "s/$PRGNAM//g" | cut -d- -f2)
echo ""
echo ""$AMARILLO"Su version actual es..."$CYAN"$PRGNAM-$INSTALADA"$CIERRE""
sleep 3
echo ""
echo "__________________________________________"
echo ""
echo ""$AMARILLO"La version mas actual es..."$CYAN"$PRGNAM-$VERSION"$CIERRE""
echo ""
echo ""$BLANCO"Pulsa $ROJO"ENTER" $BLANCO"si deseas actualizarla""
read junk
echo ""
fi

# Si el sistema tiene una version anterior se eliminara
if [ -f /var/log/packages/$PRGNAM-[0-9]* ]; then
echo ""
echo "$ROJO"Se detecto una version antigua en el sistema... limpiando."$CIERRE"
sleep 5
removepkg /var/log/packages/$PRGNAM-[0-9]*
fi

# Creamos directorio temporal de trabajo
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT $PKG/usr/sbin/
cd $TMP

# Si el paquete no existe se descargara de internet
if [ ! -f $ARCHIVO ]; then
echo ""
echo "$CYAN"Descargando sources de $PRGNAM-$VERSION"$CIERRE"
sleep 5
wget $DOWNLOAD
fi

# Descomprimimos el fichero descargado
echo ""
echo "$VERDE"Descomprimiendo ..."$CIERRE"
sleep 5
rm -rf $PRGNAM-$VERSION
tar xvf $ARCHIVO
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
# Configuramos paquete
echo ""
echo "$VERDE"Configurando ..."$CIERRE"
sleep 5
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --build=$ARCH-slackware-linux

make -j$NUCLEOS || exit 1
make install DESTDIR=$PKG

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
 
# Creamos las configuraciones y directorios necesarios
# Directorios
mkdir -p $PKG/etc/{lighttpd,logrotate.d,rc.d}
mkdir -p $PKG/var/{cache/lighttpd,log/lighttpd,www/htdocs-lighttpd}

# Configuraciones
echo  >$PKG/var/log/lighttpd/error.log
echo  >$PKG/var/log/lighttpd/access.log

cat > $PKG/etc/lighttpd/lighttpd.conf << "EOF"
# lighttpd configuration file
#
# use it as a base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $

############ Options you really have to take care of ####################

## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
#                               "mod_rewrite",
#                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
#                               "mod_auth",
#                               "mod_status",
#                               "mod_setenv",
#                               "mod_fastcgi",
#                               "mod_proxy",
#                               "mod_simple_vhost",
#                               "mod_evhost",
#                               "mod_userdir",
#                               "mod_cgi",
#                               "mod_compress",
#                               "mod_ssi",
#                               "mod_usertrack",
#                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
                                "mod_accesslog" )

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root        = "/var/www/htdocs-lighttpd"

## where to send error-messages to
server.errorlog             = "/var/log/lighttpd/error.log"

# files to check for if .../ is requested
index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm" )

## set the event-handler (read the performance section in the manual)
# server.event-handler = "freebsd-kqueue" # needed on OS X

# mimetype mapping
mimetype.assign             = (
  ".pdf"          =>      "application/pdf",
  ".sig"          =>      "application/pgp-signature",
  ".spl"          =>      "application/futuresplash",
  ".class"        =>      "application/octet-stream",
  ".ps"           =>      "application/postscript",
  ".torrent"      =>      "application/x-bittorrent",
  ".dvi"          =>      "application/x-dvi",
  ".gz"           =>      "application/x-gzip",
  ".pac"          =>      "application/x-ns-proxy-autoconfig",
  ".swf"          =>      "application/x-shockwave-flash",
  ".tar.gz"       =>      "application/x-tgz",
  ".tgz"          =>      "application/x-tgz",
  ".tar"          =>      "application/x-tar",
  ".zip"          =>      "application/zip",
  ".mp3"          =>      "audio/mpeg",
  ".m3u"          =>      "audio/x-mpegurl",
  ".wma"          =>      "audio/x-ms-wma",
  ".wax"          =>      "audio/x-ms-wax",
  ".ogg"          =>      "application/ogg",
  ".wav"          =>      "audio/x-wav",
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".xbm"          =>      "image/x-xbitmap",
  ".xpm"          =>      "image/x-xpixmap",
  ".xwd"          =>      "image/x-xwindowdump",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".js"           =>      "text/javascript",
  ".asc"          =>      "text/plain",
  ".c"            =>      "text/plain",
  ".cpp"          =>      "text/plain",
  ".log"          =>      "text/plain",
  ".conf"         =>      "text/plain",
  ".text"         =>      "text/plain",
  ".txt"          =>      "text/plain",
  ".dtd"          =>      "text/xml",
  ".xml"          =>      "text/xml",
  ".mpeg"         =>      "video/mpeg",
  ".mpg"          =>      "video/mpeg",
  ".mov"          =>      "video/quicktime",
  ".qt"           =>      "video/quicktime",
  ".avi"          =>      "video/x-msvideo",
  ".asf"          =>      "video/x-ms-asf",
  ".asx"          =>      "video/x-ms-asf",
  ".wmv"          =>      "video/x-ms-wmv",
  ".bz2"          =>      "application/x-bzip",
  ".tbz"          =>      "application/x-bzip-compressed-tar",
  ".tar.bz2"      =>      "application/x-bzip-compressed-tar"
 )

# Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetype.use-xattr        = "enable"


## send a different Server: header
## be nice and keep it at lighttpd
# server.tag                 = "lighttpd"

#### accesslog module
accesslog.filename          = "/var/log/lighttpd/access.log"

## deny access the file-extensions
#
# ~    is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be part
#      of the document-root
url.access-deny             = ( "~", ".inc" )

$HTTP["url"] =~ "\.pdf$" {
  server.range-requests = "disable"
}

##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

######### Options that are good to be but not neccesary to be changed #######

## bind to port (default: 80)
#server.port                = 81

## bind to localhost (default: all interfaces)
#server.bind                = "grisu.home.kneschke.de"

## error-handler for status 404
#server.error-handler-404   = "/error-handler.html"
#server.error-handler-404   = "/error-handler.php"

## to help the rc.scripts
server.pid-file            = "/var/run/lighttpd/lighttpd.pid"


###### virtual hosts
##
##  If you want name-based virtual hosting add the next three settings and load
##  mod_simple_vhost
##
## document-root =
##   virtual-server-root + virtual-server-default-host + virtual-server-docroot
## or
##   virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root   = "/home/weigon/wwwroot/servers/"
#simple-vhost.default-host  = "grisu.home.kneschke.de"
#simple-vhost.document-root = "/pages/"


##
## Format: <errorfile-prefix><status-code>.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"

## virtual directory listings
#dir-listing.activate       = "enable"

## enable debugging
#debug.log-request-header   = "enable"
#debug.log-response-header  = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found   = "enable"

### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot              = "/"

## change uid to <uid> (default: don't care)
server.username            = "lighttpd"

## change uid to <uid> (default: don't care)
server.groupname           = "lighttpd"

#### compress module
#compress.cache-dir         = "/tmp/lighttpd/cache/compress/"
#compress.filetype          = ("text/plain", "text/html")

#### proxy module
## read proxy.txt for more info
#proxy.server               = ( ".php" =>
#                               ( "localhost" =>
#                                 (
#                                   "host" => "192.168.0.101",
#                                   "port" => 80
#                                 )
#                               )
#                             )

#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
#fastcgi.server             = ( ".php" =>
#                               ( "localhost" =>
#                                 (
#                                   "socket" => "/var/run/lighttpd/php-fastcgi.socket",
#                                   "bin-path" => "/usr/bin/php"
#                                 )
#                               )
#                            )

#### CGI module
#cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
#                               ".cgi" => "/usr/bin/perl" )
#

#### SSL engine
#######################################################################
###
###  SSL Support
### -------------
###
### To enable SSL for the whole server you have to provide a valid
### certificate and have to enable the SSL engine.::
###
###   ssl.engine = "enable"
###   ssl.pemfile = "/path/to/server.pem"
###
### The HTTPS protocol does not allow you to use name-based virtual
### hosting with SSL. If you want to run multiple SSL servers with
### one lighttpd instance you must use IP-based virtual hosting: ::
###
###   $SERVER["socket"] == "10.0.0.1:443" {
###     ssl.engine                  = "enable"
###     ssl.pemfile                 = "/etc/ssl/private/www.example.com.pem"
###     #
###     # Mitigate BEAST attack:
###     #
###     # A stricter base cipher suite. For details see:
###     # http://blog.ivanristic.com/2011/10/mitigating-the-beast-attack-on-tls.html
###     #
###     ssl.cipher-list             = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM"
###     #
###     # Make the server prefer the order of the server side cipher suite instead of the client suite.
###     # This is necessary to mitigate the BEAST attack (unless you disable all non RC4 algorithms).
###     # This option is enabled by default, but only used if ssl.cipher-list is set.
###     #
###     # ssl.honor-cipher-order = "enable"
###     #
###     # Mitigate CVE-2009-3555 by disabling client triggered renegotation
###     # This is enabled by default.
###     #
###     # ssl.disable-client-renegotiation = "enable"
###     #
###     server.name                 = "www.example.com"
###
###     server.document-root        = "/var/www/vhosts/example.com/www/"
###   }
###
#ssl.engine                 = "enable"
#ssl.pemfile                = "server.pem"

#### status module
#status.status-url          = "/server-status"
#status.config-url          = "/server-config"

#### auth module
## read authentication.txt for more info
#auth.backend               = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"

#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
#auth.backend.ldap.filter   = "(uid=$)"

#auth.require               = ( "/server-status" =>
#                               (
#                                 "method"  => "digest",
#                                 "realm"   => "download archiv",
#                                 "require" => "user=jan"
#                               ),
#                               "/server-config" =>
#                               (
#                                 "method"  => "digest",
#                                 "realm"   => "download archiv",
#                                 "require" => "valid-user"
#                               )
#                             )

#### url handling modules (rewrite, redirect, access)
#url.rewrite                = ( "^/$"             => "/server-status" )
#url.redirect               = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
#  url.redirect            = ( "^/(.*)" => "http://%1/$1" )
#}

#
# define a pattern for the host url finding
# %% => % sign
# %0 => domain name + tld
# %1 => tld
# %2 => domain name without tld
# %3 => subdomain 1 name
# %4 => subdomain 2 name
#
#evhost.path-pattern        = "/home/storage/dev/www/%3/htdocs/"

#### expire module
#expire.url                 = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")

#### ssi
#ssi.extension              = ( ".shtml" )

#### rrdtool
#rrdtool.binary             = "/usr/bin/rrdtool"
#rrdtool.db-name            = "/var/www/lighttpd.rrd"

#### setenv
#setenv.add-request-header  = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )

## for mod_trigger_b4_dl
# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10

## for mod_cml
## don't forget to add index.cml to server.indexfiles
# cml.extension               = ".cml"
# cml.memcache-hosts          = ( "127.0.0.1:11211" )

#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"

## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
## array merge
#index-file.names = (foo + ".php") + index-file.names
#index-file.names += (foo + ".php")

## Another example on how to start an FastCGI server for php - uses php-cgi
## - copy the php.ini from /etc/httpd/php.ini into /etc/lighttpd/
##   (or change the path, if you prefeer): don't forget to enable in it
##   cgi.fix_pathinfo = 1
## - the socket is created into /var/run/lighttpd/
## - /var/lib/php must be owned by the user owning the lighttpd
##   process for php supporting sessions
## Uncomment the section below to enable.
#fastcgi.server    = ( ".php" =>
#        ((
#                "bin-path" => "/usr/bin/php-cgi -c /etc/lighttpd/php.ini",
#                "socket" => "/var/run/lighttpd/php.socket",
#                "max-procs" => 1,
#                "idle-timeout" => 20,
#                "bin-environment" => (
#                        "PHP_FCGI_CHILDREN" => "8",
#                        "PHP_FCGI_MAX_REQUESTS" => "200"
#                ),
#                "bin-copy-environment" => (
#                        "PATH", "SHELL", "USER"
#                ),
#                "broken-scriptfilename" => "enable"
#        ))
#)

#### include
#include /etc/lighttpd/lighttpd-inc.conf
## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
#include "lighttpd-inc.conf"

#### include_shell
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1

EOF

cat > $PKG/etc/logrotate.d/lighttpd << "EOF"
/var/log/lighttpd/*.log {
su lighttpd lighttpd
daily
missingok
copytruncate
rotate 7
create 0644 lighttpd lighttpd
compress
notifempty
sharedscripts
postrotate
if [ -x /etc/rc.d/rc.lighttpd -a -f /var/run/lighttpd.pid ]; then
/etc/rc.d/rc.lighttpd reload
fi
endscript
}

EOF

cat > $PKG/etc/rc.d/rc.lighttpd << "EOF"
#!/bin/sh

LIGHTTPD=/usr/sbin/lighttpd
PIDFILE=/var/run/lighttpd/lighttpd.pid
LIGHTTPD_OPTIONS="-f /etc/lighttpd/lighttpd.conf"

is_pidof() {
  local STATE=$(ps -p $1 -o cmd= | grep "$2" > /dev/null ; echo $?)
  return $STATE
}

lighttpd_start() {
  echo "Starting lighttpd: $LIGHTTPD"
  if [ -r $PIDFILE ] && is_pidof $(cat $PIDFILE) lighttpd ; then
    echo "Already running!"
    return
  fi
  mkdir -p $(dirname $PIDFILE)
  chown -R lighttpd:lighttpd $(dirname $PIDFILE)
  $LIGHTTPD $LIGHTTPD_OPTIONS
}

lighttpd_stop() {
  echo "Stopping lighttpd: $LIGHTTPD"
  if [ -r $PIDFILE ] && is_pidof $(cat $PIDFILE) lighttpd ; then
    kill $(cat $PIDFILE)
    rm -f $PIDFILE
  else
    echo "Not running!"
  fi
}

lighttpd_restart() {
  lighttpd_stop
  sleep 1
  lighttpd_start
}

lighttpd_reload() {
  kill -s HUP $(cat $PIDFILE)
}

case "$1" in
'start')
  lighttpd_start
  ;;
'stop')
  lighttpd_stop
  ;;
restart)
  lighttpd_restart
  ;;
reload)
  lighttpd_reload
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

EOF

chmod 0755 $PKG/etc/rc.d/rc.lighttpd

# Creamos xzm , instalamos y salimos
echo ""
echo "$VERDE"Instalando y creando modulo xzm ..."$CIERRE"
sleep 5
cd $PKG
cleandir $PKG
dir2xzm $PKG $HOME/Desktop/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.xzm
xzm2dir $HOME/Desktop/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.xzm /
rm -Rf $TMP &>/dev/null
clear
echo ""
echo ""$VERDE"Creado modulo del paquete "$AMARILLO"$PRGNAM-$VERSION"$CIERRE""
echo ""
echo "$VERDE"Las tareas han finalizado"$CIERRE"
sleep 3
echo ""
echo "$VERDE"Bye Bye"$CIERRE"
echo ""
update-desktop-database -q /usr/share/applications &> /dev/null
sleep 3
exit 0


Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #387 en: 13-08-2014, 08:25 (Miércoles) »
ftp updated , 2 nuevos y 3 retocados.   ;)

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #388 en: 13-08-2014, 10:25 (Miércoles) »
@vk486    ;D ;D ;D


si no se te ocurre ninguno , dimelo ...y te digo .

por ejemplo uno que seria muy fácil ,seria JDK , ya que seria casi idéntico al jre.

JDK , es la versión full de java.

vk496

  • Visitante
Re:
« Respuesta #389 en: 13-08-2014, 10:29 (Miércoles) »
Hdp.... Ese 8 ya es a conciencia... XD

Ok, por mi encantado. A veces me cuesta mas encontrar uno que hacerlo XD

No se si tu podrías con jdownloader... A mi no me había salido

PD: Gracias por el lighttpd

PD2: me va a llevar mucho tiempo en acabar SET. Estoy desde netbook (metasploit+SET+netbook=Muerte), y no puedo ponerme en un PC. Así que si tu tienes tiempo, acabalo. Sino, lo haré yo en cuanto pueda

Salu2

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re:
« Respuesta #390 en: 13-08-2014, 11:38 (Miércoles) »
Hdp.... Ese 8 ya es a conciencia... XD

Ok, por mi encantado. A veces me cuesta mas encontrar uno que hacerlo XD

No se si tu podrías con jdownloader... A mi no me había salido

PD: Gracias por el lighttpd

PD2: me va a llevar mucho tiempo en acabar SET. Estoy desde netbook (metasploit+SET+netbook=Muerte), y no puedo ponerme en un PC. Así que si tu tienes tiempo, acabalo. Sino, lo haré yo en cuanto pueda

Salu2


men , haberme avisado, puedo asignarte scripts mas flojos de recursos.


en  /opt/wifislax-slackbuilds

hay uno para exaile ....  conviértelo.


ojito a un comando que se repite 3 veces , es un sed..si no recuerdo mal para eliminar la línea numero 16 ,  por tres veces.


hay tres líneas de code, que si eres root, el programa se cierra y no arranca,

no se si es exactamente la 16 , pero vamos , lo veras por que se repite el comando 3 veces ,,,

seguramente hay formas mas elegantes de librarse de esas tres líneas, pero ..hice lo que pude.


al eliminar la 16 , la que antes era 17 , pasa a ser la nueca línea 16  ...se vuelve a eliminar hasta tre sveces, de esa forma me libro de la 16 , 17 y 18 

creo se entiende ,...

ahora mismo no recuerdo mas sencillas de poco recurso , si me acuerdo te voy diciendo alguno.

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #391 en: 13-08-2014, 11:39 (Miércoles) »
creo que zatto , esta sin hacer también ,y es sencillo , ya que si no recuerdo mal es un deb..a xzm  ...  ^-^

teik

  • Visitante
Re: he tenidp una idea , para los extras
« Respuesta #392 en: 14-08-2014, 09:48 (Jueves) »
el update de aircrack cuando lo lanzo sale comprobando numero de vrsion y se cierra. no actualiza o al menos eso creo puesto que con el airodump veo los canales 148 y  153 cuando esta oculto el bssid y creo que eso ya lo arreglaron no?  ??? os pidiria otro de tor, que lo suelo utilizar mucho sino es mucho pedir grandes.  >:(

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #393 en: 14-08-2014, 09:52 (Jueves) »
el update de aircrack cuando lo lanzo sale comprobando numero de vrsion y se cierra. no actualiza o al menos eso creo puesto que con el airodump veo los canales 148 y  153 cuando esta oculto el bssid y creo que eso ya lo arreglaron no?  ??? os pidiria otro de tor, que lo suelo utilizar mucho sino es mucho pedir grandes.  >:(

el svn de aircrack a estado caido unos dias ...

hoy de madrugada funcionaba bien.


si se cierra es que el svn esta caido ...y no puede ver ni bajar nada.  ;)

mirare de hacer un ping y si no responde que salga algun aviso de ftp caido..

another_beginner

  • Visitante
Re: he tenidp una idea , para los extras
« Respuesta #394 en: 14-08-2014, 10:29 (Jueves) »
Hola,
pues me quitaré el sombrero si me puedes echar un cable para un modulo .xzm desde hdd para el Adobe Dreamweaver css5 que no me arranca con Wine 1.7.20 desde Wifilax 4.9. Tengo que renovar mi pobre web x q estoy petdiendo puestos en SEO con la antigua..He dejado en el forro mi grito de ayuda pero no hay manera.
Si puedes hacer algo ...por todos los Linux-es de este patetico mundo....eres THE BEST !!!

Manuel_cdz85

  • Visitante
Re: he tenidp una idea , para los extras
« Respuesta #395 en: 14-08-2014, 10:40 (Jueves) »
USUARIONEW yo también me apunto a lo de tor estaría bien si se pudiera meter el script de tor y si es posible algún editor de vídeo que sea sencillo en español y bueno se agradece muchisimo

vk496

  • Visitante
Re:
« Respuesta #396 en: 14-08-2014, 11:16 (Jueves) »
Newuser, el de Tor lo hice hace un montón de tiempo... XD

Salu2

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re:
« Respuesta #397 en: 16-08-2014, 22:17 (Sábado) »
Newuser, el de Tor lo hice hace un montón de tiempo... XD

Salu2

pues dime donde , ....   :-\

si en algun momento te pones , me urge   "entre comillas", que ya sabes que no hay prisa , ni obligacion de nada, pero el de jdk , que creo sera facil usando de base el de jre.

y señalame donde esta el de tor, por que no lo veo...y si me deje alguno mas dimelo por favor, que no fue conscientemente, se ha podido traspapelar alguno.

Manuel_cdz85

  • Visitante
Re: he tenidp una idea , para los extras
« Respuesta #398 en: 19-08-2014, 12:11 (Martes) »
Como va todo campeones? :D

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: he tenidp una idea , para los extras
« Respuesta #399 en: 19-08-2014, 15:05 (Martes) »
Como va todo campeones? :D

hay un pequeño standby   ;)