-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48eb18e
commit 0dda063
Showing
88 changed files
with
239,687 additions
and
1,213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | ||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="MoreLinq" publicKeyToken="384d532d7e88985d" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.0.16006.0" newVersion="1.0.16006.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
<entityFramework> | ||
<providers> | ||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> | ||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" /> | ||
</providers> | ||
</entityFramework> | ||
<system.data> | ||
<DbProviderFactories> | ||
<remove invariant="System.Data.SQLite.EF6" /> | ||
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /> | ||
<remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories> | ||
</system.data> | ||
</configuration> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<PublishUrlHistory>C:\Users\danie\OneDrive\Área de Trabalho\Diversos\Publicacao\|C:\Users\danie\OneDrive\Área de Trabalho\Publicacao\|C:\Users\danie\Desktop\publicacao\</PublishUrlHistory> | ||
<InstallUrlHistory /> | ||
<SupportUrlHistory /> | ||
<UpdateUrlHistory /> | ||
<BootstrapperUrlHistory /> | ||
<ErrorReportUrlHistory /> | ||
<FallbackCulture>pt-BR</FallbackCulture> | ||
<VerifyUploadedFiles>false</VerifyUploadedFiles> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<EnableSecurityDebugging>false</EnableSecurityDebugging> | ||
</PropertyGroup> | ||
</Project> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
// GNU GENERAL PUBLIC LICENSE | ||
// Version 3, 29 June 2007 | ||
//Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
//Everyone is permitted to copy and distribute verbatim copies | ||
//of this license document, but changing it is not allowed. | ||
|
||
using System; | ||
using System.ComponentModel; | ||
using System.Diagnostics; | ||
using System.IO; | ||
using System.Windows.Forms; | ||
|
||
namespace Avilla_Forensics | ||
{ | ||
public partial class DeviceExplorer : Form | ||
{ | ||
public DeviceExplorer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public class caminho //Variável Pública | ||
{ | ||
//public static string package = ""; | ||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
string pathADB = @"adb"; | ||
string fullPath; | ||
fullPath = Path.GetFullPath(pathADB); | ||
|
||
string pathFind = @"find"; | ||
string fullPathFind; | ||
fullPathFind = Path.GetFullPath(pathFind); | ||
|
||
textBox1.Text = ""; | ||
listBox1.Items.Clear(); | ||
|
||
ProcessStartInfo processStartInfoAPPT = new ProcessStartInfo("powershell.exe"); | ||
processStartInfoAPPT.RedirectStandardInput = true; | ||
processStartInfoAPPT.RedirectStandardOutput = true; | ||
processStartInfoAPPT.UseShellExecute = false; | ||
processStartInfoAPPT.CreateNoWindow = true; | ||
Process processAPPT = Process.Start(processStartInfoAPPT); | ||
if (processAPPT != null) | ||
{ | ||
processAPPT.StandardInput.WriteLine(fullPath + "\\adb.exe shell ls / > " + fullPathFind + "\\files.txt"); | ||
processAPPT.StandardInput.Close(); | ||
processAPPT.StandardOutput.ReadToEnd(); | ||
} | ||
|
||
string line; | ||
System.IO.StreamReader file = new System.IO.StreamReader(fullPathFind + "\\files.txt"); | ||
|
||
while ((line = file.ReadLine()) != null) | ||
{ | ||
if (line != "") | ||
{ | ||
listBox1.Items.Add(line); | ||
} | ||
} | ||
file.Close(); | ||
|
||
if (listBox1.Items.Count > 0) | ||
{ | ||
button4.Enabled = true; | ||
button5.Enabled = true; | ||
} | ||
else | ||
{ | ||
button4.Enabled = false; | ||
button5.Enabled = false; | ||
MessageBox.Show("Device not recognized", "Heads up"); | ||
} | ||
} | ||
|
||
private void listBox1_SelectedIndexChanged(object sender, EventArgs e) | ||
{ | ||
|
||
if (textBox1.Text != listBox1.Text) | ||
{ | ||
textBox1.Text = textBox1.Text + listBox1.Text + "/"; | ||
|
||
listBox1.Items.Clear(); | ||
|
||
string pathADB = @"adb"; | ||
string fullPath; | ||
fullPath = Path.GetFullPath(pathADB); | ||
|
||
string pathFind = @"find"; | ||
string fullPathFind; | ||
fullPathFind = Path.GetFullPath(pathFind); | ||
|
||
ProcessStartInfo processStartInfoAPPT = new ProcessStartInfo("powershell.exe"); | ||
processStartInfoAPPT.RedirectStandardInput = true; | ||
processStartInfoAPPT.RedirectStandardOutput = true; | ||
processStartInfoAPPT.UseShellExecute = false; | ||
processStartInfoAPPT.CreateNoWindow = true; | ||
Process processAPPT = Process.Start(processStartInfoAPPT); | ||
if (processAPPT != null) | ||
{ | ||
processAPPT.StandardInput.WriteLine(fullPath + "\\adb.exe shell ls \"" + textBox1.Text + "\" > " + fullPathFind + "\\files.txt"); | ||
processAPPT.StandardInput.Close(); | ||
processAPPT.StandardOutput.ReadToEnd(); | ||
} | ||
|
||
string line; | ||
System.IO.StreamReader file = new System.IO.StreamReader(fullPathFind + "\\files.txt"); | ||
|
||
while ((line = file.ReadLine()) != null) | ||
{ | ||
if (line != "") | ||
{ | ||
listBox1.Items.Add(line); | ||
} | ||
} | ||
file.Close(); | ||
} | ||
} | ||
|
||
private void button2_Click(object sender, EventArgs e) | ||
{ | ||
pictureBox2.Visible = true; | ||
backgroundWorker1.RunWorkerAsync(); | ||
} | ||
|
||
private void button3_Click(object sender, EventArgs e) | ||
{ | ||
pictureBox2.Visible = true; | ||
backgroundWorker2.RunWorkerAsync(); | ||
} | ||
|
||
private void label3_Click(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void textBox1_TextChanged(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void button5_Click(object sender, EventArgs e) | ||
{ | ||
//define as propriedades do controle | ||
//OpenFileDialog | ||
this.ofd2.Multiselect = true; | ||
this.ofd2.Title = "Select file"; | ||
ofd2.InitialDirectory = @"C:\"; | ||
ofd2.Filter = "All files (*.*)|*.*"; | ||
ofd2.CheckFileExists = true; | ||
ofd2.CheckPathExists = true; | ||
ofd2.FilterIndex = 2; | ||
ofd2.RestoreDirectory = true; | ||
ofd2.ReadOnlyChecked = true; | ||
ofd2.ShowReadOnly = true; | ||
|
||
DialogResult drIPED = this.ofd2.ShowDialog(); | ||
|
||
if (drIPED == System.Windows.Forms.DialogResult.OK) | ||
{ | ||
TXTorigem.Text = ofd2.FileName; | ||
button3.Enabled = true; | ||
} | ||
} | ||
|
||
private void button4_Click(object sender, EventArgs e) | ||
{ | ||
FolderBrowserDialog backupfolderIPED = new FolderBrowserDialog(); | ||
backupfolderIPED.Description = "Choose destination folder"; | ||
if (backupfolderIPED.ShowDialog() == DialogResult.OK) | ||
{ | ||
TXTdestino.Text = backupfolderIPED.SelectedPath; | ||
webBrowser1.Navigate(backupfolderIPED.SelectedPath); | ||
button2.Enabled = true; | ||
} | ||
} | ||
|
||
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) | ||
{ | ||
string pathADB = @"adb"; | ||
string fullPath; | ||
fullPath = Path.GetFullPath(pathADB); | ||
|
||
ProcessStartInfo processStartInfoAPPT = new ProcessStartInfo("powershell.exe"); | ||
processStartInfoAPPT.RedirectStandardInput = true; | ||
processStartInfoAPPT.RedirectStandardOutput = true; | ||
processStartInfoAPPT.UseShellExecute = false; | ||
processStartInfoAPPT.CreateNoWindow = true; | ||
Process processAPPT = Process.Start(processStartInfoAPPT); | ||
if (processAPPT != null) | ||
{ | ||
processAPPT.StandardInput.WriteLine(fullPath + "\\adb.exe pull -a \"" + textBox1.Text + "\" \"" + TXTdestino.Text + "\""); | ||
processAPPT.StandardInput.Close(); | ||
processAPPT.StandardOutput.ReadToEnd(); | ||
} | ||
} | ||
|
||
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) | ||
{ | ||
pictureBox2.Visible = false; | ||
} | ||
|
||
private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e) | ||
{ | ||
string pathADB = @"adb"; | ||
string fullPath; | ||
fullPath = Path.GetFullPath(pathADB); | ||
|
||
ProcessStartInfo processStartInfoAPPT = new ProcessStartInfo("powershell.exe"); | ||
processStartInfoAPPT.RedirectStandardInput = true; | ||
processStartInfoAPPT.RedirectStandardOutput = true; | ||
processStartInfoAPPT.UseShellExecute = false; | ||
processStartInfoAPPT.CreateNoWindow = true; | ||
Process processAPPT = Process.Start(processStartInfoAPPT); | ||
if (processAPPT != null) | ||
{ | ||
processAPPT.StandardInput.WriteLine(fullPath + "\\adb.exe push " + "\"" + TXTorigem.Text + "\" \"" + textBox1.Text + "\""); | ||
processAPPT.StandardInput.Close(); | ||
processAPPT.StandardOutput.ReadToEnd(); | ||
} | ||
|
||
string pathFind = @"find"; | ||
string fullPathFind; | ||
fullPathFind = Path.GetFullPath(pathFind); | ||
|
||
ProcessStartInfo processStartInfoAPPT2 = new ProcessStartInfo("powershell.exe"); | ||
processStartInfoAPPT2.RedirectStandardInput = true; | ||
processStartInfoAPPT2.RedirectStandardOutput = true; | ||
processStartInfoAPPT2.UseShellExecute = false; | ||
processStartInfoAPPT2.CreateNoWindow = true; | ||
Process processAPPT2 = Process.Start(processStartInfoAPPT2); | ||
if (processAPPT2 != null) | ||
{ | ||
processAPPT2.StandardInput.WriteLine(fullPath + "\\adb.exe shell ls " + textBox1.Text + " > " + fullPathFind + "\\files.txt"); | ||
processAPPT2.StandardInput.Close(); | ||
processAPPT2.StandardOutput.ReadToEnd(); | ||
} | ||
} | ||
|
||
private void backgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) | ||
{ | ||
string pathFind = @"find"; | ||
string fullPathFind; | ||
fullPathFind = Path.GetFullPath(pathFind); | ||
|
||
listBox1.Items.Clear(); | ||
|
||
string line; | ||
System.IO.StreamReader file = new System.IO.StreamReader(fullPathFind + "\\files.txt"); | ||
|
||
while ((line = file.ReadLine()) != null) | ||
{ | ||
if (line != "") | ||
{ | ||
listBox1.Items.Add(line); | ||
} | ||
} | ||
file.Close(); | ||
|
||
pictureBox2.Visible = false; | ||
} | ||
} | ||
} |
Oops, something went wrong.