Closed mgeeky closed 4 years ago
Awesome! Can’t wait to sit down and test it out! Thanks for taking the time. I’ll hit you back once I roll it in. Hopefully this week I’ll have a little time to work on my pull request back log :)
I finally got this rolled in. Thank you again for the contribution. Very much appreciated. Happy Hacking! :)
Thank you @nullbind for your time reviewing this PR. Was wondering, do you think we should strive to make these two functions support multiple MSSQL servers as fed from pipeline? I never tested them on more than one server in a row to be honest. The upload one should be already kinda working as it does not require paths mangling, but the download one could use some download paths generation logic reworking. Whato do you think?
By the way - my twitter handle is @mariuszbit :-)
Yeah, I think it’s definitely possible. The functions may just need a little tweaking. Also, thanks for the twitter handle, I’ll make sure to update it in the contributions/ code refs.
Hi there,
I've added two handy functions for file upload via Ole Automation Stored Procedures (instantiating ADODB.Stream ActiveX OLE) and file download using OPENROWSET with BULK option.
The ideas came from this article: Lateral movement via MSSQL and did the trick to me for uploading & downloading files while I was on the assessment.
Found some spare time to implement these primitives into PowerUpSQL as well. Hope I followed the code etiquette you have there :-)
Best regards, Mariusz B.