From a61696be0c75c85bb86d0ac67b1cbba144ce711f Mon Sep 17 00:00:00 2001 From: Nhoya Date: Sun, 14 Jan 2018 03:48:37 +0100 Subject: [PATCH 1/2] Added dependency in travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index e2b5755..a2f4dcf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,5 @@ install: - go get github.com/nhoya/goPwned - go get github.com/jessevdk/go-flags - go get gopkg.in/src-d/go-git.v4 + - go get github.com/jaytaylor/html2text - go build From 4ac4ec10b31ac52db6b869e1d4e996432ea92063 Mon Sep 17 00:00:00 2001 From: Nhoya Date: Sun, 14 Jan 2018 04:35:19 +0100 Subject: [PATCH 2/2] Fixed problem with Telegram graceCounter, notify deleted messages --- README.md | 2 +- gOSINT.go | 2 +- telegram.go | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b4ea99e..09c37a1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ OSINT framework in Go **current version**: 0.4 -**develop version**: 0.4 +**develop version**: 0.4a you probably want to take a look at the develop branch for more updates. diff --git a/gOSINT.go b/gOSINT.go index bda2a78..14f70d5 100644 --- a/gOSINT.go +++ b/gOSINT.go @@ -8,7 +8,7 @@ import ( "github.com/jessevdk/go-flags" ) -const ver = "v0.4" +const ver = "v0.4a" var opts struct { Module string `short:"m" long:"module" description:"Specify module" choice:"pgp" choice:"pwnd" choice:"git" choice:"plainSearch" choice:"telegram"` diff --git a/telegram.go b/telegram.go index cd114b1..d114b68 100644 --- a/telegram.go +++ b/telegram.go @@ -17,6 +17,10 @@ func getTelegramGroupHistory(group string, grace int) { body := retriveRequestBody("https://t.me/" + group + "/" + messageid + "?embed=1") message := getTelegramMessage(body) if message != "" { + for j := 0; j < graceCounter; j++ { + fmt.Println("[MESSAGE REMOVED]") + } + graceCounter = 0 username, nickname := getTelegramUsername(body) date, time := getTelegramMessageDateTime(body) if username == "" {