Random Tools
rvrsh3ll / misc-powershell-scripts Goto Github PK
View Code? Open in Web Editor NEWRandom Tools
License: MIT License
Random Tools
License: MIT License
Hello,
Sorry, I am very new to PowerShell. I need this program to remotely check users browsing history at work. I can't seem to get the PowerShell script to work. I saved it as a .ps1 extension but all I get is a blank PowerShell terminal.
Thank you, considering this is probably user error.
I've been trying to get this to run for a few days, but I am unable to get any errors or commands to report back.
I've been over the code several times but can't find where it's being stopped.
Running: .\Get-BrowserData -Browser All -Datatype History -UserName *****
Only to get a blank readout
The examples in the code refer to a Get-BrowserInformation function instead of Get-BrowserData the proper one.
Hi sir,
I've determined the script is not fully functional anymore with the latest version of Chrome regarding fetching the bookmarks. Google Chrome has set the bookmarks based on folders, subfolders, subfolders .children so you cannot fetch them all with your current method. To work around this I've created the following adjustment.
You off course are free to integrate it into your scripts, as it is of much help to me! Thanks in advance.
Adjusted code:
function Get-ChromeBookmarks { $Path = "$Env:systemdrive\Users\$UserName\AppData\Local\Google\Chrome\User Data\Default\Bookmarks" if (-not (Test-Path -Path $Path)) { Write-Verbose "[-] Could not find Chrome Bookmarks for username: $UserName" } else { $Json = Get-Content $Path $Output = $Json | ConvertFrom-Json $Jsonobject1 = $Output.roots.bookmark_bar.children $Jsonobject2 = $Output.roots.bookmark_bar.children.children $Jsonobject3 = $Output.roots.bookmark_bar.children.children.children $Jsonobject4 = $Output.roots.bookmark_bar.children.children.children.children $Jsonobject5 = $Output.roots.bookmark_bar.children.children.children.children.children $Jsonobject6 = $Output.roots.bookmark_bar.children.children.children.children.children.children $JsonObject = $Jsonobject1, $Jsonobject2, $Jsonobject3, $Jsonobject4, $Jsonobject5, $Jsonobject6 $JsonObject | ForEach-Object { New-Object -TypeName PSObject -Property @{ User = $UserName Browser = 'Chrome' DataType = 'Bookmark' Data = $_.item('url') Name = $_.item('name') } } $JsonObject } }
Happy to help out!
Kind regards,
Martijn
It would be nice to funnel that script through BurpSuite.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.