github.com/iDigitalFlame/xmt@v0.5.4/c2/task/y_nix.go (about) 1 //go:build !windows 2 // +build !windows 3 4 // Copyright (C) 2020 - 2023 iDigitalFlame 5 // 6 // This program is free software: you can redistribute it and/or modify 7 // it under the terms of the GNU General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // any later version. 10 // 11 // This program is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with this program. If not, see <https://www.gnu.org/licenses/>. 18 // 19 20 package task 21 22 import ( 23 "context" 24 25 "github.com/iDigitalFlame/xmt/cmd" 26 "github.com/iDigitalFlame/xmt/data" 27 "github.com/iDigitalFlame/xmt/device" 28 ) 29 30 func taskTroll(_ context.Context, _ data.Reader, _ data.Writer) error { 31 return device.ErrNoWindows 32 } 33 func taskCheck(_ context.Context, _ data.Reader, _ data.Writer) error { 34 return device.ErrNoWindows 35 } 36 func taskPatch(_ context.Context, _ data.Reader, _ data.Writer) error { 37 return device.ErrNoWindows 38 } 39 func taskInject(_ context.Context, _ data.Reader, _ data.Writer) error { 40 return device.ErrNoWindows 41 } 42 func taskZombie(_ context.Context, _ data.Reader, _ data.Writer) error { 43 return device.ErrNoWindows 44 } 45 func taskUntrust(_ context.Context, _ data.Reader, _ data.Writer) error { 46 return device.ErrNoWindows 47 } 48 func taskFuncMap(_ context.Context, _ data.Reader, _ data.Writer) error { 49 return device.ErrNoWindows 50 } 51 func taskRegistry(_ context.Context, _ data.Reader, _ data.Writer) error { 52 return device.ErrNoWindows 53 } 54 func taskInteract(_ context.Context, _ data.Reader, _ data.Writer) error { 55 return device.ErrNoWindows 56 } 57 func taskLoginsAct(_ context.Context, _ data.Reader, _ data.Writer) error { 58 return device.ErrNoWindows 59 } 60 func taskWindowList(_ context.Context, _ data.Reader, _ data.Writer) error { 61 return device.ErrNoWindows 62 } 63 func taskLoginsProc(_ context.Context, _ data.Reader, _ data.Writer) error { 64 return device.ErrNoWindows 65 } 66 func taskFuncMapList(_ context.Context, _ data.Reader, _ data.Writer) error { 67 return device.ErrNoWindows 68 } 69 70 // DLLUnmarshal will read this DLL's struct data from the supplied reader and 71 // returns a DLL runnable struct along with the wait and delete status booleans. 72 // 73 // This function returns an error if building or reading fails or if the device 74 // is not running Windows. 75 func DLLUnmarshal(_ context.Context, _ data.Reader) (*cmd.DLL, bool, bool, error) { 76 return nil, false, false, device.ErrNoWindows 77 } 78 79 // ZombieUnmarshal will read this Zombies's struct data from the supplied reader 80 // and returns a Zombie runnable struct along with the wait and delete status 81 // booleans. 82 // 83 // This function returns an error if building or reading fails or if the device 84 // is not running Windows. 85 func ZombieUnmarshal(_ context.Context, _ data.Reader) (*cmd.Zombie, bool, error) { 86 return nil, false, device.ErrNoWindows 87 }