Skip to content

Commit

Permalink
AChoir v2.2
Browse files Browse the repository at this point in the history
Add Ver:Server and Ver:Client Checks
  • Loading branch information
OMENScan committed Oct 16, 2018
1 parent 5e2be3c commit 864dea3
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 18 deletions.
Binary file modified A-AChoir.exe
Binary file not shown.
Binary file modified A-AChoir64.exe
Binary file not shown.
Binary file modified AChoir-inst.exe
Binary file not shown.
52 changes: 48 additions & 4 deletions AChoir.cpp
Expand Up @@ -154,6 +154,7 @@
/* Win10 */
/* Win2000, Win2003, Win2008, Win2008R2, */
/* Win2012, Win2012R2, Win2016 */
/* AChoir v2.2 - Add Ver: Client, and Server checks */
/* */
/* rc=0 - All Good */
/* rc=1 - Bad Input */
Expand Down Expand Up @@ -249,7 +250,7 @@
#define MaxArray 100
#define BUFSIZE 4096

char Version[10] = "v2.1\0";
char Version[10] = "v2.2\0";
char RunMode[10] = "Run\0";
int iRanMode = 0;
int iRunMode = 0;
Expand Down Expand Up @@ -3127,14 +3128,43 @@ int main(int argc, char *argv[])
if (strnicmp(Inrec, "VER:", 4) == 0)
{
/****************************************************************/
/* Check Running OS Version */
/* Check Running OS Version or Type (Server, Client) */
/****************************************************************/
strtok(Inrec, "\n");
strtok(Inrec, "\r");

if(consOrFile == 1)
{
consPrefix("[*] ", consYel);

if (strnicmp(Inrec+4, "Server", 6) == 0)
{
if(iIsServer == 1)
{
fprintf(LogHndl, "[*] Windows OS Type is: Server\n");
printf("Windows OS Type is: Server\n");
}
else
{
fprintf(LogHndl, "[*] Windows OS Type is: Client - Not: Server\n");
printf("Windows OS Type is: Client - Not: Server\n");
}
}
else
if (strnicmp(Inrec+4, "Client", 6) == 0)
{
if(iIsServer == 0)
{
fprintf(LogHndl, "[*] Windows OS Type is: Client\n");
printf("Windows OS Type is: Client\n");
}
else
{
fprintf(LogHndl, "[*] Windows OS Type is: Server - Not: Client\n");
printf("Windows OS Type is: Server - Not: Client\n");
}
}
else
if (strnicmp(shortWinVer, Inrec+4, 10) != 0)
{
fprintf(LogHndl, "[*] Windows OS is: %s - Not: %s\n", shortWinVer, Inrec+4);
Expand All @@ -3147,8 +3177,22 @@ int main(int argc, char *argv[])
}
}
else
if (strnicmp(shortWinVer, Inrec+4, 10) != 0)
RunMe++;
{
if (strnicmp(Inrec+4, "Server", 6) == 0)
{
if(iIsServer != 1)
RunMe++;
}
else
if (strnicmp(Inrec+4, "Client", 6) == 0)
{
if(iIsServer != 0)
RunMe++;
}
else
if (strnicmp(shortWinVer, Inrec+4, 10) != 0)
RunMe++;
}
}
else
if (strnicmp(Inrec, "RC=:", 4) == 0)
Expand Down
Binary file modified AChoir.exe
Binary file not shown.
Binary file modified AChoir64.exe
Binary file not shown.
50 changes: 38 additions & 12 deletions README.md
Expand Up @@ -38,14 +38,14 @@ Achoir is a Framework/Scripting Tool to standardize and simplify that process.
* AChoir v0.22 - New ARN: Action - Parse the Run Key and copy the Autorun EXEs
* AChoir v0.23 - New /MNU Switch - Run the Menu.ACQ script
* AChoir v0.24 - Expand the ARN: routine to recognize WOW64
* ............ and System32/sysnative wierdness
* ............ and System32/sysnative wierdness
* AChoir v0.25 - More improvements to Run Key Extract
* Achoir v0.25b - Add WinAudit and GPResult to Scripts
* AChoir v0.26 - Expand system variables %variable%
* AChoir v0.27 - More improvements in remote acquisition (Map)
* AChoir v0.28 - Add /MAP: /USR: and /PWD: command lines
* ............ and MAP: USR: and PWD: INI file Actions
* ............ to enable Mapping for Remote Acquisition
* ............ - and MAP: USR: and PWD: INI file Actions
* ............ - to enable Mapping for Remote Acquisition
* AChoir v0.29 - Add ADM:Check and ADM:Force to check OR enforce that AChoir be run from an ADMIN ID
* ............ - Converted to MSVC
* ............ - Also replaced libCurl with MS WinHTTP APIs
Expand All @@ -57,7 +57,7 @@ Achoir is a Framework/Scripting Tool to standardize and simplify that process.
* AChoir v0.35 - Add DRV: Action to Set &Drv
* AChoir v0.36 - Add Variables 0-9 (VR0: - VR9:) (&VR0 - &VR9)
* ............ - Fix wierd Win7 "Application Data" Path
* ............ Recursion Anomoly
* ............ - Recursion Anomoly
* AChoir v0.37 - Remove DST Calculation - Add Checks to CPY:
* AChoir v0.38 - New DST Convergence Code
* AChoir v0.39 - Add LBL: and JMP: for Conditional Execution
Expand All @@ -82,22 +82,22 @@ Achoir is a Framework/Scripting Tool to standardize and simplify that process.
* AChoir v0.91 - Edge case exit Bug Fix
* AChoir v0.92 - Sig:<Typ=xxxx> Load File Type, Hex Signature
* ............ - NCS: NTFS Copy by Signature
* ............ (Used together to copy Files by Signature)
* ............ - (Used together to copy Files by Signature)
* AChoir v0.93 - Refactored some SQLite Code to avoid random
* ............ Heap Corruption issues
* ............ - Heap Corruption issues
* AChoir v0.95 - FINALLY Fix Abend Bug in Large File Support
* AChoir v0.96 - Clean Up some of the code, improve output.
* AChoir v0.96a- Cosmetic changes to Index.htm
* AChoir v0.97 - Add Colors, Minor Bug Fixes
* AChoir v0.98 - CPS: Copy by Signature (Standard Win32 API)
* ............ (Used with SIG: to copy Files by Signature)
* ............ - Not Recommended for Locked/System Files
* ............ - (Used with SIG: to copy Files by Signature)
* ............ - - Not Recommended for Locked/System Files
* ............ - Tighten Application Data recursion to 2 lvls
* ............ - /Con or /ini:Console - Console as Input File
* AChoir v0.98a- Various improvements to Interactive Mode
* ............ - Replace conditional statements with messages
* ............ - add INI:Console to Scripting
* ............ - Improve switching between Script and Interactive Modes
* ............ - Replace conditional statements with messages
* ............ - add INI:Console to Scripting
* ............ - Improve switching between Script and Interactive Modes
* AChoir v1.0 - Cosmetic USB Message Changes
* ............ - HTTP Get Bug Fixes, Fix &Acq dblSlash
* ............ - Add Optional Case & Evidence Name/Number Input
Expand All @@ -109,7 +109,7 @@ Achoir is a Framework/Scripting Tool to standardize and simplify that process.
* ............ - NEQ:<s1> <s2> - Are S1 and S2 NOT Equal?
* ............ - Support Indenting (spaces or Tabs)
* ............ - DSK:<type> Set &DSK looping variable to
* ............ - Types: Removable, Fixed, Remote, CDROM
* ............ - Types: Removable, Fixed, Remote, CDROM
* ............ - &DSK - Looping Var Contains Disk that match
* AChoir v1.1 - Peppered Flush STDOUT buffers for better
* ............ - PSExec Display (Remote Acq)
Expand All @@ -130,6 +130,32 @@ Achoir is a Framework/Scripting Tool to standardize and simplify that process.
* ............ - When BaseDir changes, change Windows CWD too
* ............ - New Redaction Routine for PWD: EXE: CMD:
* AChoir v1.6 - Add EXA: and EXB: (Asyn & Background EXe)
* AChoir v1.7 - Fix DSK: &DSK bug for Remote Collections
* ............ - File not being properly closed causes loop.
* AChoir v1.8 - Recognize Compressed Files, and allow them to
* ............ - be copied by the OS API to DeCompress them
* ............ - The Flag for this behaviour is:
* ............ - SET:NCP=OSCOPY or SET:NCP=RAWONLY
* ............ - Also Added built in Support for WOW64 file
* ............ - redirection of X86 binCopy of SYSTEM32
* ............ - (sub) directories. This was needed for
* ............ - switching from rawcopy to bincopy - plus its
* ............ - a good general feature anyway.
* AChoir v1.9 - Recognize Compressed Size
* AChoir v1.9a - More Comressed Files Support
* AChoir v2.0 - Add LZNT1 Decompress Routine
* ............ - Flag behaviors have changed:
* ............ - SET:NCP=NODCMP - NoDecompression
* ............ - SET:NCP=DECOMP/RAWONLY - LZNT1 Decompress
* ............ - SET:NCP=OSCOPY - Do OS/API copy on Decomp Err
* AChoir v2.1 - Add App Compat Manifest - For 8.1 and above
* ............ - comaptibility
* ............ - Add new Conditional Logic on Windows Version
* ............ - VER:WinXP, WinXP64, Vista, Win7, Win8, Win8.1
* ............ - Win10
* ............ - Win2000, Win2003, Win2008, Win2008R2,
* ............ - Win2012, Win2012R2, Win2016
* AChoir v2.2 - Add Ver: Client, and Server checks


# Quick Start (tl;dr):
Expand Down
5 changes: 3 additions & 2 deletions WhatIsAChoir.txt
@@ -1,4 +1,4 @@
AChoir - v2.1
AChoir - v2.2

AChoir
======
Expand Down Expand Up @@ -285,7 +285,8 @@ VER:<verkeyword>
OS version is running. If so, run the statements until END:
Note: the valid <verkeyword> keywords are:
WinXP, WinXP64, Vista, Win7, Win8, Win8.1, Win10
Win2000, Win2003, Win2008, Win2008R2, Win2012, Win2012R2, Win2016
Win2000, Win2003, Win2008, Win2008R2, Win2012, Win2012R2,
Win2016, Server, Client
Note2: Use this function with Caution - For various reasons Windows
CAN report the wrong version. This is a limitation of the
Windows Platform and APIs
Expand Down

0 comments on commit 864dea3

Please sign in to comment.