Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - grep

#41
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
2) Para ti, ¿Cuáles son las principales medidas de seguridad?

Una buena lista de Wikipedia:

Citar5.1   Security by design
5.2   Security architecture
5.3   Security measures
5.4   Vulnerability management
5.5   Reducing vulnerabilities
5.6   Hardware protection mechanisms
5.7   Secure operating systems
5.8   Secure coding
5.9   Capabilities and access control lists
5.10   Response to breaches

fuente: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Citar2) Para ti, ¿Cuáles son las principales medidas de seguridad?

Pues la seguridad tiene muchos puntos de vista, muchas opticas distintas pero si hay que dar un resumen yo diria que:

1.- Cifrar los medios de almacenamiento
2.- Cifrar las conexiones mediante VPN
3.- Cifrar las consultas DNS.
4.- No conectarse de redes inalambricas abiertas o publicas (a menos que ya hayas cifrado tu conexion y tus consultas)
5.-Mantener todo tu software actualizado a la ultima version
6.-Ser rapido con la mente y lento con los clicks (Pensar bien antes de andar dando click a todo lo que se ve en internet)
7.- Usar listas negras para saber que se puede ejecutar y que no.
8.-Nunca usar una cuenta de administrador si no es necesario
9.- Si tienes un punto de acceso inalambrico desactivar el acceso por WPS y usar WPA2
10.- Mucho cuidado con las apps mobiles descargadas por fuera del playstore o del appstore (si tienes un iphone con JB ten mucho ojo lo que instalas y los repositorios que agregas)

Como siempre @You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login, preciso y al punto. Gracias


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
3) Añade un motivo de seguridad aparte de los ya expuestos en el vídeo.

Además de protección de la "Información" que es el activo principal y, junto al dinero, capáz de mover al mundo? Otros motivos los puedes extraer de la lista de los sistemas computacionales en riesgo:

Citar2.1   Financial systems
2.2   Utilities and industrial equipment
2.3   Aviation
2.4   Consumer devices
2.5   Large corporations
2.6   Automobiles
2.7   Government
2.8   Internet of Things and physical vulnerabilities

fuente: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#42
Dudas y pedidos generales / Re:laravel vs php puro
Noviembre 29, 2016, 10:17:00 AM
Laravel, al igual que muchos de los frameworks para el desarrollo Web, te brinda una arquitectura base y una serie de características que permiten el desarrollo ágil con la aplicación de buenas prácticas y patrones permitiendo además el fácil mantenimiento y el desarrollo colaborativo.

A menos que el proyecto sea pequeño, que requieras de integraciones complejas, o que la prioridad sea la performance, es mejor utilizar Laravel.

Saludos
#43
Off Topic / Re:Si fuese el fin del mundo...
Noviembre 25, 2016, 12:01:01 PM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Una canción es buena, una canción nos trae alegría.

Una canción es el ejemplo más alto de cultura que los Lilims han creado.



#44

Este dispositivo de US$5 puede hackear una computadora bloqueada en un minuto

Citar"It's entirely automated. You plug it in, you leave it there for a minute, then you pull it out and you walk away," Kamkar told Motherboard in a phone call. "You don't even need to know how to do anything."

PoisonTap es el nombre de un dispositivo y de un programa creado por Samy Kamkar (@SamyKamkar // You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login) que puede explotar, por USB, computadoras bloqueadas o protegidas con contraseña, dejar un backdoor basado en WebSockets, obtener cookies, exponer el router interno al atacante y realizar MiTM de todo el tráfico a Internet.

La herramienta emula ser un dispositivo Ethernet (como Ethernet over USB) y brinda un Web Server con Node.js. Ha sido desarrollada para un Raspberry Pi Zero, el cual cuesta US$5, sin ningún componente adicional más que un cable micro-USB y una microSD, pero puede funcionar con otros dispositivos que emulen gadgets USB como USB Armony y LAN Turtle.

Como lo señala en la página y en su repositorio de github, PoisonTrap evade los siguientes mecanismos de seguridad:

Password Protected Lock Screens
Routing Table priority and network interface Service Order
Same-Origin Policy
X-Frame-Options
HttpOnly Cookies
SameSite cookie attribute
Two-Factor/Multi-Factor Authentication (2FA/MFA)
DNS Pinning
Cross-Origin Resource Sharing (CORS)
HTTPS cookie protection when Secure cookie flag & HSTS not enabled

Live demonstration:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Código fuente, detalles y descargas en los siguientes enlaces:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Fuente: motherboard.vice

Más sobre Samy Kamkar:
@SamyKamkar
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
#45
Dudas y pedidos generales / Re:Ayuda: cadena textos en BAT
Noviembre 16, 2016, 11:37:01 AM
Puedes fijarte aquí:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#46
Dudas y pedidos generales / Re:Como programar un troyano?
Noviembre 16, 2016, 11:20:12 AM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
A la hora de programar un RAT como un troyano o una botnet (para windows), es impresindible usar el API de Windows? Es decir..
Si el WinAPI no existiera, no habria otra forma de acceder a los recursos del SO directamente?

Si el WinAPI no existiera, no habria otra forma de acceder a los recursos del SO directamente.

También se accede a la WinAPI (de forma indirecta) cuando utilizas un intérprete, una librería, una máquina virtual u otro programa.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Tambien creo haber escuchado que, actualmente al tirar mucho del WinAPI o al usar winsock, puede que nuestro malware sea mas detectado? Corrijanme porfavor.

Los malwares suelen ser programados en C++ y en ASM. No solo por utilizar la WinAPI tu programa puede ser detectado porque, si fuera así, todo sería malware para un software de detección.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Otra duda que tengo es, se puede crear el GUI de nuestro programa en el entorno de Visual Studio .NET(en C++) y usar las funciones de WinAPI para las demas cosas? como por ej. agregar al registro, crear threads, manipular procesos etc..
O si voy a usar WinAPI para lo dicho, tambien debo usarlo para crear mi GUI?

Esto sirve para complementar la duda que tenías sobre los formularios en Visual Studio para C++
(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

* Para usar la WinAPI de forma directa necesitas utilizar código nativo (unmanaged code).
* Para crear ventanas con el Designer de Visual Studio necesitas usar el Framework .NET (managed code).

Para unir esos dos mundos se ha creado "C++/CLI", una especificación creada por Microsoft para permitir la interoperabilidad con el código nativo. "Native and .NET Interoperability" es en donde coexisten las estructuras unmanaged y managed en el mismo assembly (este assembly se conoce como un "Mixed assembly", un componente que puede llamar y ser llamado por otro componente .NET mientras mantiene la compatibilidad con componentes unmanaged). Como el resultado final es un assembly, entonces el programa generado depende del Framework .NET.
Native and .NET Interoperability: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Mixed (Native and Managed) Assemblies: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Antes de seguir, quiero aclarar que se puede crear un programa con varios módulos. Un módulo no es una DLL o dependencia, es una unidad que se puede combinar para generar un assembly (este assembly puede ser la aplicación o una librería).

Un módulo puede compilarse con la opción /clr para permitir que el mismo utilice las características del Framework .NET y mantener la compatibilidad con el resto de la aplicación.
/clr (Common Language Runtime Compilation): You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Visual C++ soporta la generación de tres tipos de assemblies con la opción /clr:
* Mixed
* Pure
* Safe
Puedes ver la comparación en los siguientes enlaces:
Mixed, Pure, and Verifiable Feature Comparison (C++/CLI): You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Pure and Verifiable Code (C++/CLI): You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Las funcionalidades de interoperabilidad necesarias para llamar código nativo desde unmanaged code las provee el CLR (la máquina virtual del Framework .NET) y se llaman "Platform Invocation Services" o PInvoke. Para el caso de Visual C++, se puede utilizar C++ Interop (Implicit PInvoke) o DllImport/DllExport Attribute (Explicit PInvoke).
Calling Native Functions from Managed Code: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Using C++ Interop (Implicit PInvoke): You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Using Explicit PInvoke in C++ (DllImport Attribute): You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Finalmente quiero contarte que existen varias precauciones que debes tener en cuenta al desarrollar este tipo de soluciones y que la comunidad de desarrolladores de Visual C++ generalmente no utiliza C++/CLI.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
que opinan de delphi para la programacion de RATs en la actualidad?

Si Delphi te brinda todo lo necesario para crear el programa que quieres crear, entonces no hay problema.
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#47
Soluciones de Wargames / Re:WebForPentesters
Noviembre 15, 2016, 09:31:16 AM
A favoritos,

Gracias @You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#48
Supongo que el error es que no encuentra el archivo input.txt. Cuando estas depurando un programa C++ en Visual Studio, por defecto el Working Directory es el directorio del proyecto (no el de la solución ni tampoco el directorio Debug).

CitarDebugging category
Working Directory
Specifies the working directory of the program being debugged, relative to the project directory where your EXE is located. If you leave this blank, the working directory is the project directory. For remote debugging, the project directory will be on the remote server.
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Puedes cambiar el Working Directory ya sea configurando el proyecto o desde el código del programa, o por otro lado podrías direccionar al archivo en base al Working Directory (el path del WD lo puedes obtener con _getcwd() You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login) o con una ruta absoluta (You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

fuente:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#49
Si es posible, pero no tan simple:

* Tienes que utilizar la WinAPI o algún wrapper para poder encontrar el handle del Window en donde los textos se encuentran.

* Puedes utilizar Microsoft Spy++ (spyxx) para encontrar el handle de un Window
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

* You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login es una librería en managed code para enumerar y buscar window handles
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

* FindWindowEx() sirve para encontrar el handle de un Window, y EnumChildWindows() sirve para enumerar los hijos de un handle dado.
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

* Para actualizar los datos obtenidos puedes utilizar un timer


Saludos
#50
Prueba crear un archivo con el nombre Main.cpp (para que se utilice el compilador de C++) e inserta el código que te brindan arriba:

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
C++
Código: CPP

#include <iostream>

using namespace std;

int main()
{
    cout << "Hola Mundo";

    return 0;
}



Saludos
#51
Cuando ves los detalles de esta alerta puedes leer lo siguiente:

CitarGoogle Safe Browsing recently found harmful programs on You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Google Safe Browsing es un servicio de google que mantiene una lista negra de URLs que contienen o proveen enlaces a malware o contenido con pishing.

cuando accedes al enlace que se cuentra sobre "found harmful programs" puedes ver lo que Google Safe Browsing reporta acerca de You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

CitarCurrent status: Dangerous
ricardonarvaja.info contains harmful programs.

Site Safety Details
*Some pages on this website send visitors to dangerous websites.
*Some pages on this website install malware on visitors' computers.
*Attackers on this site might try to trick you into installing programs that harm your browsing experience (for example, by changing your homepage or showing extra ads on sites you visit).
*Dangerous websites have been sending visitors to this website, including: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login and You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Es lógico que Google cuente a You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login como sitio malicioso ya que cuenta con recursos para el análisis de malware y exploiting entre otros. Esto es entendido por la comunidad CrackSLatinoS y los visitantes solo deben ignorar el mensaje de alerta.

Saludos
#52
Otra forma es ejecutando dbcc CHECKDB con 'repair_rebuild' en user mode (también llamado single user mode),

para poner la base de datos en user mode haces click derecho a la base, seleccionas propiedades, y en el panel options cambias la opción "Restrict Access" a SINGLE_USER o Single. Cierras y vuelves a abrir el Management, y ejecutas el siguiente comando en la base de datos que tiene el problema:

Código: text
dbcc CHECKDB('<BASE DE DATOS>', 'repair_rebuild')
#53
Por favor, podrías describir más el problema?, podrías mostrar el texto de error que obtienes.

Si es de "corrupción de índices no agrupados" o "nonclustered index corruption", en la fuente que dejo abajo Paul Randal muestra que si el problema es sólo con índices no agrupados entonces puedes correr el siguiente comando (un offline index rebuild) para erreglarlo:

Código: text

ALTER INDEX <NOMBRE DEL ÍNDICE> ON <TABLA> REBUILD;
GO

DBCC CHECKDB (DemoNCIndex)
WITH NO_INFOMSGS, ALL_ERRORMSGS;
GO


<NOMBRE DEL ÍNDICE> lo puedes obtener en el resultado del error o con el siguiente comando:

Código: text
EXEC sp_HelpIndex '<TABLA>';
GO


fuente:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#54
Seguridad / Re:Hardening Windows 7 SP1
Noviembre 04, 2016, 12:00:40 PM
Gracias @You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login,

En el mismo sitio del "Australian Signals Directorate" se pueden encontrar más publicaciones muy interesantes con sus respectivos PDF's.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Dejo el enlace a otras publicaciones similares:

HARDENING MICROSOFT WINDOWS 8 STANDARD OPERATING ENVIRONMENTS
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

HARDENING MICROSOFT OFFICE 2013
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

MICROSOFT OFFICE MACRO SECURITY
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

SECURING POWERSHELL IN THE ENTERPRISE
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

USING REMOTE DESKTOP CLIENTS
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#55
C# - VB.NET / Re:[VB.NET] Bypass UAC
Noviembre 04, 2016, 11:37:38 AM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Esto realmente funciona? para que SOs?

CitarThis technique has been tested on Windows 7 and Windows 10, but is expected to work on all versions of Windows that implement UAC.

fuente:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos
#56
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
¿debería dar más tiempo a la programación o al hacking?

La decisión es tuya. Actualmente existen y se crean rápidamente soluciones que facilitan las tareas al especialista en (In)seguridad informática y permiten que avance, muchas veces, sin la necesidad de programar.


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Voy a empezar con C, pero entro a la biblioteca y me estreso por completo por que no se que libro elegir para empezar a aprenderme todo. ¿Alguna recomendación que este completa y bien para empezar?

Aprende inglés y encuentra el modo de leer "The C Programming Language by Kernighan Brian, Ritchie Dennis" (mejor conocido como K&R). C es un lenguaje con especificaciones estándar por excelencia, y la segunda edición del K&R, aunque dificil para empezar, brinda lo necesario para conocer C a nivel del estándar ANSI C (conocido como C89 o C90).

Saludos
#57
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
¿Se puede compaginar de una manera eficiente el aprender y tratar de dominar un lenguaje con el hacking y su metodología?

No estoy seguro si es eficiente, pero llevando las prácticas a la programación (osea, resolver alguna duda o obtener información mediante la programación o analizando código de terceros) vas a lograr el objetivo.


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Yo aún no tengo una base de programación, por eso busco saber bien C para luego pasarme a otros lenguajes, pero con una buena base de C.

Este ha sido el primer lenguaje que he aprendido. Con C he logrado afianzar los conceptos de estructura de datos, punteros y gestión de memoria.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
En estos juegos, ¿que lenguaje usan? Y para hacer los hacks, con ese lenguaje, ¿basta con aprender el lenguaje en concreto o aprender el lenguaje orientado a algo en específico?

Como dije antes, se suele utilizar C++, ASM o algún lenguaje .NET y DLL's nativas de Windows o de algún SDK. El objetivo suele ser manipular algún objeto o recurso en memoria.

Saludos
#58
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
¿Puede una personas llegar a saber programar en casi todos los lenguajes de programación que existen actualmente?
¿Puede saber programarlos todos y además, usarlo para el hacking con todas sus técnicas? ¿Cuanto tiempo te puede llevar?

Cuando alcanzas cierto nivel de conocimiento y práctica de las tecnologías y metodologías existentes, usar un lenguaje diferente para intentar solucionar un problema no es complicado como cuando apenas comienzas con la programación.

Cuando llegas a tomar 2 o 3 lenguajes tu forma de encarar otros lenguajes cambia ya que comprendes el contexto sobre el cual funcionan y sabes lo que debes buscar y por donde empezar. Con esto apoyo lo que dijo arriba @You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login:

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Ahora, si de verdad sabe programar cambiar de un lenguaje a otro es un juego, recordar funciones y buscar las que no recuerdes y poco mas, pero si la esencia de la programación y la mente la tienes habituada a la forma de pensar de un programador no supone mayor problema...

En mi caso, con estudios universiarios a la mitad y trabajando con la programación me ha tomado como 2 años llegar a dominar la programación y formar mi capacidad de comprensión de esto que te explico.

A pesar de que cada lenguaje cuenta con sus buenas prácticas, metodologías recomendadas, y trucos, para desarrollar una solución comunmente no es necesario tener conocimiento de ello. Esas partes deberían interesarte si quieres realmente llamarte "programador" en ese lenguaje.


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
¿Las personas que desarrollan hacks para determinados juegos, que lenguaje usan? ¿C/C++?

¿A qué clase de juegos te refieres?.

Para los videojuegos, los hacks suelen ser programados en C, C++, y ASM, pero también puedes utilizar otros lenguajes, como VB, siempre y cuando puedas realizar tareas como extraer información de un proceso y escribir en el espacio de memoria del mismo.

Saludos
#59
Utilizando for puedes hacer algo como lo siguiente:

Código: dos

SET "NOMBRE-BASE-DATOS=MyAccessDB"

SET "SourceDir=%USERPROFILE%\Pictures"                            %=Directorio fuente=%
SET "TargetDir=.\cosas\%USERNAME%\%NOMBRE_BASE_DATOS%"            %=Directorio destino=%
SET "Files=*.accdb"                                               %=Archivos a copiar=%
SET Maxsize=200                                                   %=Archivos menores a 200MB=%

IF NOT EXIST "%TargetDir%" MD "%TargetDir%"

SET /A Maxsize *= 1024 * 1024

FOR /R "%SourceDir%" %%G IN ("%Files%") DO IF %%~zG LSS %Maxsize% COPY "%%G" "%TargetDir%\"


Aquí la operación importante es:

Código: dos
IF %%~zG LSS %Maxsize%


Si el tamaño %%~zG del archivo %%G es inferior a %Maxsize%, entonces se realiza la copia. Si quieres que el tamaño del archivo sea menor o igual al tamaño especificado, entonces utiliza LEQ (Less than or Equal) en lugar de LSS.

Saludos
#60
La opción /MAX: pertenece al comando robocopy el cual se encuentra incluido a partir de Windows 7 (para Windows XP necesitas Resource Kit).

Al utilizar robocopy no veo necesario utilizar el comando for el mismo programa itera sobre cada archivo del directorio fuente, realiza las comprobaciones necesarias en cada uno y, si el archivo cumple con las condiciones, se copia al directorio destino (si el directorio destino no existe, robocopy lo crea automáticamente).

Ejemplo:

Código: dos

SET "NOMBRE-BASE-DATOS=MyAccessDB"

SET "SourceDir=%USERPROFILE%\Pictures"         %=Directorio fuente=%
SET "TargetDir=%NOMBRE-BASE-DATOS%"            %=Directorio destino=%
SET "Files=*.accdb"                                %=Archivos a copiar=%
SET Maxsize=200                                %=Archivos menores a 200MB=%

IF NOT EXIST ".\cosas\%USERNAME%" MD ".\cosas\%USERNAME%"
CD ".\cosas\%USERNAME%"

SET /A Maxsize *= 1024 * 1024
SET /A Maxsize -= 1

robocopy "%SourceDir%" "%TargetDir%" %Files% /XF "%~f0" /MAX:"%Maxsize%"


Fuente:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Saludos