Skip to content

Commit

Permalink
hashed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Aug 14, 2023
1 parent 87c7a1f commit 358cf1c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions sh.exe.stackdump
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Stack trace:
Frame Function Args
0007FFFFC2B0 00021006118E (00021028DEE8, 000210272B3E, 000000000000, 0007FFFFB1B0) msys-2.0.dll+0x2118E
0007FFFFC2B0 0002100469BA (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x69BA
0007FFFFC2B0 0002100469F2 (00021028DF99, 0007FFFFC168, 000000000000, 000000000000) msys-2.0.dll+0x69F2
0007FFFFC2B0 00021006A41E (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x2A41E
0007FFFFC2B0 00021006A545 (0007FFFFC2C0, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x2A545
0001004F94B7 00021006B9A5 (0007FFFFC2C0, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x2B9A5
End of stack trace
Loaded modules:
000100400000 sh.exe
7FFF50B30000 ntdll.dll
7FFF4EAC0000 KERNEL32.DLL
7FFF4E280000 KERNELBASE.dll
7FFF4FB00000 USER32.dll
7FFF4E7A0000 win32u.dll
7FFF50420000 GDI32.dll
7FFF4E0A0000 gdi32full.dll
7FFF4E000000 msvcp_win.dll
7FFF4E7D0000 ucrtbase.dll
000210040000 msys-2.0.dll
7FFF4FCD0000 advapi32.dll
7FFF50450000 msvcrt.dll
7FFF4F3B0000 sechost.dll
7FFF50740000 RPCRT4.dll
7FFF4D710000 CRYPTBASE.DLL
7FFF4DF10000 bcryptPrimitives.dll
7FFF50860000 IMM32.DLL
4 changes: 2 additions & 2 deletions src/model/cloud-runner/remote-client/remote-client-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ export class RemoteClientLogger {
hashedLogs = await await CloudRunnerSystem.Run(`md5sum ${RemoteClientLogger.LogFilePath}`);
process.chdir(startPath);

CloudRunnerLogger.log(hashedLogs);
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
const logs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
CloudRunnerLogger.log(logs);

// loop for 5 mins logging the logs every minute
for (let index = 0; index < 5; index++) {
for (let index = 0; index < 2; index++) {
await new Promise((resolve) => setTimeout(resolve, 60000));
CloudRunnerLogger.log(logs);
}
Expand Down

0 comments on commit 358cf1c

Please sign in to comment.