forked from GhostPack/Rubeus
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Showing
37 changed files
with
1,248 additions
and
723 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
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,34 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Data; | ||
using System.Windows.Media.Imaging; | ||
|
||
namespace RubeusGui | ||
{ | ||
|
||
[ValueConversion(typeof(Boolean), typeof(BitmapFrame))] | ||
public class DisabledToIconConverter : IValueConverter | ||
{ | ||
|
||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | ||
{ | ||
if (value == null || (bool)value == false) | ||
{ | ||
return new BitmapImage(new Uri("pack://application:,,,/RubeusGui;component/images/male_user_16px.png")); | ||
} | ||
else | ||
{ | ||
return new BitmapImage(new Uri("pack://application:,,,/RubeusGui;component/images/lock_blue_16px.png")); | ||
} | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | ||
{ | ||
return null; | ||
} | ||
|
||
} | ||
} |
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,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace RubeusGui | ||
{ | ||
public class CsvWriter | ||
{ | ||
|
||
//public static void SaveCsvWithPrompt(string defaultFileName, List<Dictionary<string, string>> data) | ||
//{ | ||
// if (data?.Count == 0 || data[0].Count == 0) | ||
// { | ||
// return; | ||
// } | ||
// var sfd = new Microsoft.Win32.SaveFileDialog(); | ||
// sfd.Filter = "CSV Files (*.csv)|*.csv"; | ||
// sfd.FileName = defaultFileName; | ||
// if ((bool)sfd.ShowDialog()) | ||
// { | ||
// using (StreamWriter writer = new StreamWriter(sfd.FileName, false, new UTF8Encoding(false))) | ||
// { | ||
// foreach (Dictionary<string, string> currentRow in data) | ||
// { | ||
// | ||
// | ||
// } | ||
// } | ||
// } | ||
//} | ||
|
||
public static string MakeCsvSafe(string value) | ||
{ | ||
if (string.IsNullOrEmpty(value)) | ||
{ | ||
return "\" \""; | ||
} | ||
else | ||
{ | ||
return "\"" + value.Replace("\"", "\"\"") + "\""; | ||
} | ||
} | ||
} | ||
|
||
|
||
} |
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
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
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.
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.
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
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
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
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
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
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
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
Oops, something went wrong.