forked from PoshSec/PoshSecFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added raw interface to support write-host Still need to do read-host and implement other parts, but this is the basis. Also cleaned up empty new lines that were not necessary. Improved logging with new lines.
- Loading branch information
Showing
7 changed files
with
190 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Management.Automation.Host; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace poshsecframework.PShell | ||
{ | ||
class psfhostrawinterface : PSHostRawUserInterface | ||
{ | ||
public override ConsoleColor BackgroundColor | ||
{ | ||
get | ||
{ | ||
return System.ConsoleColor.Blue; | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override Size BufferSize | ||
{ | ||
get | ||
{ | ||
return new System.Management.Automation.Host.Size(80, 80); | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override Coordinates CursorPosition | ||
{ | ||
get | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override int CursorSize | ||
{ | ||
get | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override void FlushInputBuffer() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override ConsoleColor ForegroundColor | ||
{ | ||
get | ||
{ | ||
return ConsoleColor.Black; | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override BufferCell[,] GetBufferContents(Rectangle rectangle) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override bool KeyAvailable | ||
{ | ||
get { throw new NotImplementedException(); } | ||
} | ||
|
||
public override Size MaxPhysicalWindowSize | ||
{ | ||
get { throw new NotImplementedException(); } | ||
} | ||
|
||
public override Size MaxWindowSize | ||
{ | ||
get { throw new NotImplementedException(); } | ||
} | ||
|
||
public override KeyInfo ReadKey(ReadKeyOptions options) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override void ScrollBufferContents(Rectangle source, Coordinates destination, Rectangle clip, BufferCell fill) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override void SetBufferContents(Rectangle rectangle, BufferCell fill) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override void SetBufferContents(Coordinates origin, BufferCell[,] contents) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override Coordinates WindowPosition | ||
{ | ||
get | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override Size WindowSize | ||
{ | ||
get | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public override string WindowTitle | ||
{ | ||
get | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
set | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} | ||
} |
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