Accueil > > > MSN MESSENGER -> CONVERSATION LOGGER
MSN MESSENGER -> CONVERSATION LOGGER
Information sur la source
Description
Ben c comme un keylogger juste pour msn messenger .
Source
- 'Il vous faut un module et une form ,c tout !
- 'A oui, vous devez allez dans projet -> reference et cochez "messenger api type library".
- ' Et surtout cree un dossier "MsgrLogs" dans le disque C: !!! sinon erreur !
-
- 'Dans le module
- '-----------------
- Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
- Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
- Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
- Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
- Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
- Public Const VK_SPACE = &H20
- Public Const WM_COMMAND = &H111
- Public Const WM_KEYDOWN = &H100
- Public Const WM_KEYUP = &H101
- Public Const WM_SETTEXT = &HC
- Public Const WM_GETTEXT = &HD
- Public Const WM_GETTEXTLENGTH = &HE
- '-----------------
-
- 'Dans la form
- '--------------
- Option Explicit
- Private WithEvents objMessenger As MessengerAPI.Messenger
-
- Private Sub Form_Load()
- Set objMessenger = New MessengerAPI.Messenger
- End Sub
-
- Private Sub objMessenger_OnIMWindowDestroyed(ByVal pIMWindow As Object)
- Dim MsgrIMWindow As IMessengerConversationWnd
- Dim MsgrContacts As IMessengerContacts
- Dim lngEdit&, lngTextLen&, m&, f As Long
- Dim strText$, strEditText$, strEmail$, strTmpText As String
- Set MsgrIMWindow = pIMWindow
- Set MsgrContacts = MsgrIMWindow.Contacts
- lngEdit = FindWindowEx(MsgrIMWindow.hWnd, 0, "edit", vbNullString)
- lngTextLen = SendMessageLong(lngEdit, WM_GETTEXTLENGTH, 0, 0)
- strText = String(lngTextLen + 1, Chr(0))
- Call SendMessageByString(lngEdit, WM_GETTEXT, lngTextLen + 1, strText)
- strEditText = Left(strText, lngTextLen)
-
- If MsgrContacts.Count = 0 Then
- strTmpText = Mid(strEditText, 1, InStr(strEditText, ">, "))
- Else
- strTmpText = strEditText
- End If
-
- If InStr(strTmpText, ">") = 0 Then
- strEmail = strTmpText
- Else
- m = InStrRev(strTmpText, "<")
- f = InStrRev(strTmpText, ">")
- strEmail = Mid(strTmpText, m + 1, f - m - 1)
- End If
-
- Open "C:\MsgrLogs\" & strEmail & ".log" For Append As #1 'a la fermeture de la fenetre de conversation , le programme enregistre la conversation dans un fichier .log
- Print #1, "-----------------------------"
- Print #1, "Contact dans la conversation : " & strEditText
- Print #1, "Le " & Date & " a " & Time
- Print #1, "-----------------------------"
- Print #1, MsgrIMWindow.History
- Print #1, "-----------------------------" & vbCrLf
- Close #1
- End Sub
- '--------------
'Il vous faut un module et une form ,c tout !
'A oui, vous devez allez dans projet -> reference et cochez "messenger api type library".
' Et surtout cree un dossier "MsgrLogs" dans le disque C: !!! sinon erreur !
'Dans le module
'-----------------
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const VK_SPACE = &H20
Public Const WM_COMMAND = &H111
Public Const WM_KEYDOWN = &H100
Public Const WM_KEYUP = &H101
Public Const WM_SETTEXT = &HC
Public Const WM_GETTEXT = &HD
Public Const WM_GETTEXTLENGTH = &HE
'-----------------
'Dans la form
'--------------
Option Explicit
Private WithEvents objMessenger As MessengerAPI.Messenger
Private Sub Form_Load()
Set objMessenger = New MessengerAPI.Messenger
End Sub
Private Sub objMessenger_OnIMWindowDestroyed(ByVal pIMWindow As Object)
Dim MsgrIMWindow As IMessengerConversationWnd
Dim MsgrContacts As IMessengerContacts
Dim lngEdit&, lngTextLen&, m&, f As Long
Dim strText$, strEditText$, strEmail$, strTmpText As String
Set MsgrIMWindow = pIMWindow
Set MsgrContacts = MsgrIMWindow.Contacts
lngEdit = FindWindowEx(MsgrIMWindow.hWnd, 0, "edit", vbNullString)
lngTextLen = SendMessageLong(lngEdit, WM_GETTEXTLENGTH, 0, 0)
strText = String(lngTextLen + 1, Chr(0))
Call SendMessageByString(lngEdit, WM_GETTEXT, lngTextLen + 1, strText)
strEditText = Left(strText, lngTextLen)
If MsgrContacts.Count = 0 Then
strTmpText = Mid(strEditText, 1, InStr(strEditText, ">, "))
Else
strTmpText = strEditText
End If
If InStr(strTmpText, ">") = 0 Then
strEmail = strTmpText
Else
m = InStrRev(strTmpText, "<")
f = InStrRev(strTmpText, ">")
strEmail = Mid(strTmpText, m + 1, f - m - 1)
End If
Open "C:\MsgrLogs\" & strEmail & ".log" For Append As #1 'a la fermeture de la fenetre de conversation , le programme enregistre la conversation dans un fichier .log
Print #1, "-----------------------------"
Print #1, "Contact dans la conversation : " & strEditText
Print #1, "Le " & Date & " a " & Time
Print #1, "-----------------------------"
Print #1, MsgrIMWindow.History
Print #1, "-----------------------------" & vbCrLf
Close #1
End Sub
'--------------
Conclusion
VOila voila...
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
[WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|