Skip to content

Commit

Permalink
Initial commit WhatsApp report script "WAPAF".
Browse files Browse the repository at this point in the history
  • Loading branch information
netaddict committed May 25, 2019
1 parent dab9709 commit dbb5638
Show file tree
Hide file tree
Showing 13 changed files with 1,827 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 105 additions & 0 deletions MobileRevelator/python/Library/htmlreport-templates/data/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
body {
font-size: small
}

table, th, td, tr {
border-collapse: collapse;
}

.content td {
border: 1px solid #69899F;
padding: 0.25em;
}

.content th {
border:2px solid rgb(0, 0, 0);
padding: 0.5em;
}

.chat {
max-width: 800px;
}

.status {
background-color: rgb(255, 179, 79);
}

.outgoing {
background-color: rgb(199, 255, 154)
}

.incoming {
background-color: rgb(255, 255, 255)
}

.clearfix {
clear: both;
}

.content_headline {
padding-bottom: 1em;
}

.content_message {
font-size: medium;
}

.content_timestamp {
text-align: right
}

.note {
color: white;
background-color: darkred;
margin: 3px;
border: 1px solid #FF0000
}

.avatar_thumb_mini {
max-width:36px;
height:auto;
padding-right: 0.25em
}

.avatar_thumb_micro {
max-width:16px;
height:auto;
padding-right: 0.25em
}

.avatar_thumb {
max-width:96px;
height:auto;
}

.contact_name {
font-weight: bold
}

.contact_platform_id {
font-family: monospace
}

.contact_status {
font-size: x-small
}

.timestamp {
font-family: monospace
}

.clickable {
border: 2px solid blue;
padding: 2px;
overflow: auto;
display: inline-block;
}

.emoji {
font-size: xx-large;
}

.STICKER {
max-width:96px;
height:auto;
}
47 changes: 47 additions & 0 deletions MobileRevelator/python/Library/htmlreport-templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Chatlist Report for: {owner[platform_id]}</title>
<link rel="stylesheet" href="data/style.css">
</head>
<body>
<h1>Chatlist Report</h1>
<h2>Account Information:</h2>
<img class="avatar" src="{owner[file_avatar_thumb]}" alt="Avatar of {owner[platform_id]}" class="avatar_thumb"><br />
ID: {owner[platform_id]}<br />
Name: {owner[name]}<br />

<table class="content"><tr>
<th>Contact</th>
<th>Messages</th>
<th>Attachments</th>
<th>Users</th>
<th>Timestamps</th>
<th>Source</th>
</tr>
<!-- chats -->
<tr class="chatlist-row">
<td>
<div class="contact">
<a href="{contact_id[file_avatar]}"><img src="{contact_id[file_avatar_thumb]}" alt="Avatar of {platform_id}" class="avatar_thumb"></a><br />
<b>Name:</b> <span class="contact_name">{contact_id[name]}</span><br />
<b>ID:</b> <span class="contact_platform_id">{platform_id}</span><br />
<b>Status:</b> <span class="contact_status">{contact_id[status]}</span>
</div>
</td>
<td>{count_msg}<br /><a href="{platform_id}-messages.html">list view</a><br><a href="{platform_id}-messages-bubble.html">bubble view</a></td>
<td>{count_attach}</td>
<td>{count_users}</td>
<td>
{timestamps}
</td>
<td>{source}</td>
</tr>
<!-- chats-end -->
</table>

Report generated by {generator[product]}, {generator[version]} at {generator[timestamp_report]}
</body>
</html>

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Member List</title>
<link rel="stylesheet" href="data/style.css">
</head>
<body>
<h1>Memberlist for {chat[subject]}</h1>
The list contains all users, which where seen in chat by the owner. This means the list may contains users, which have left the chat at some point.
<h2>Metadata</h2>
<ul>
<li>Chat ID: {chat[platform_id]}</li>
<li>Chat subject: {chat[subject]}</li>
<li>Member count: {members[count_alltimes]}</li>
</ul>
<h2>Memberlist</h2>
<table class="content"><tr>
<th>Avatar</th>
<th>Name</th>
<th>ID</th>
<th>Status</th>
<th>Source</th>
</tr>
<!-- member -->
<tr>
<td><img src="{file_avatar_thumb}" alt="Avatar" class="avatar_thumb"></td>
<td>{name}</td>
<td>{platform_id}</td>
<td>{status}</td>
<td>{source} - ID: {source_id}</td>
</tr>
<!-- member-end -->
</table>

Report generated by {generator[product]}, {generator[version]} at {generator[timestamp_report]}
</body>
</html>

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Memberlist Report</title>
<link rel="stylesheet" href="data/style.css">
</head>
<body>
<h1>Memberlist at {meta[timestamp]}</h1>
<h2>Metadata</h2>
<ul>
<li>Chat ID: {chat[platform_id]}</li>
<li>Chat subject: {chat[subject]}</li>
<li>Timestamp of memberlist: {meta[timestamp]}</li>
</ul>
<h2>Memberlist</h2>
<table class="content"><tr>
<th>Avatar</th>
<th>Name</th>
<th>ID</th>
<th>Status</th>
<th>Source</th>
</tr>
<!-- member -->
<tr>
<td><img src="{file_avatar_thumb}" alt="Avatar" class="avatar_thumb"></td>
<td>{name}</td>
<td>{platform_id}</td>
<td>{status}</td>
<td>{source} - ID: {source_id}</td>
</tr>
<!-- member-end -->
</table>

Report generated by {generator[product]}, {generator[version]} at {generator[timestamp_report]}
</body>
</html>

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Message Report for: {contact[platform_id]}</title>
<link rel="stylesheet" href="data/style.css">
<link rel="stylesheet" href="data/bubble.css">
</head>
<body>
<h1>Messages Bubble Report</h1>
<div class="chat">
<!-- messages_bubble -->
<div class="{message_type}">
<div class="content_headline"><img class="avatar_thumb_micro" src="{sender_id[file_avatar_thumb]}" alt="Avatar of {sender_id[platform_id]}"> {sender_id[platform_id]} - {sender_id[name]} </div>
<div class="content_message">{content_message[data]}</div>
<div class="content_timestamp">{timestamp_message}</div>
</div>
<div class="clearfix"></div>
</br>
<!-- messages_bubble-end -->
</div>
Report generated by <b>{generator[product]}, {generator[version]}</b> at {generator[timestamp_report]}<br /><br />
* notes are <span class="note">red</span> highlited<br />
** Timestamps are in UTC format.<br />
</body>
</html>

57 changes: 57 additions & 0 deletions MobileRevelator/python/Library/htmlreport-templates/messages.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Message Report for: {contact[platform_id]}</title>
<link rel="stylesheet" href="data/style.css">
</head>
<body>
<h1>Messages Report</h1>
<h2>Chat Partner</h2>
<img class="avatar" src="{contact[file_avatar_thumb]}" alt="Avatar of {contact[platform_id]}" class="avatar_thumb"><br />
ID: {contact[platform_id]}<br />
Name: {contact[name]}<br />
<h2>Chat Session Details</h2>
<ul>
<li>Chat Type: {chat[chat_type]}</li>
<li>Session start **: {chat[timestamp_start]}</li>
<li>Session end **: {chat[timestamp_end]}</li>
<li>Messages: {chat[count_msg]}</li>
<li>Attachments: {chat[count_attach]}</li>
<li>Chat subject: {chat[subject]}</li>
<li>Admins: {chat[list_admins]}</li>
<li>Members ({members[count_current]}): {members[list_current]}</li>
<li>Members all-times ({members[count_alltimes]})***: {members[list_alltimes]}</li>
</ul>
<h2>Messages</h2>
<table class="content"><tr>
<th>Sender</th>
<th>Content</th>
<th>Timestamps **</th>
<th>Details</th>
</tr>
<!-- messages -->
<tr class="{message_type}">
<td>
<div class="contact">
<div style="float: left"><a href="{sender_id[file_avatar]}"><img class="avatar_thumb_mini" src="{sender_id[file_avatar_thumb]}" alt="Avatar of {sender_id[platform_id]}" class="avatar_thumb"></a>
<span class="contact_name">{sender_id[name]}</span><br /><span class="contact_platform_id">{sender_id[platform_id]}</span>
</div>
</td>
<td>{content_message[data]}</td>
<td>{timestamps}</td>
<td>
<b>Source:</b> {source} -> <b>ID:</b> {source_id}</br>
<b>Content:</b> {content_message[media_type]}
{details}
</td>
</tr>
<!-- messages-end -->
</table>
Report generated by <b>{generator[product]}, {generator[version]}</b> at {generator[timestamp_report]}<br /><br />
* notes are <span class="note">red</span> highlited<br />
** Timestamps are in UTC format.<br />
*** The list contains all users, which where seen in chat by the owner. This means the list may contains users, which have left the chat at some point.
</body>
</html>

Loading

0 comments on commit dbb5638

Please sign in to comment.