Solved batch


BurningSuperDef

New member
Local time
3:25 AM
Posts
10
Location
Salt lake city, Utah
OS
Windows 11
Hello, I'm working on a batch script that does some payloads and I'm going to test it on my Windows 98 VM. I want to figure out for one of the payloads how to duplicate md so I can create something like this:

md c:\windows\desktop\Constant_000
md c:\windows\desktop\Constant_001
md c:\windows\desktop\Constant_002
md c:\windows\desktop\Constant_003
md c:\windows\desktop\Constant_004
md c:\windows\desktop\Constant_005

But I want it to go up to 999 and I'm questioning how do I do this automatically? I've looked in excel and on YouTube but nothing helps.
And if you're asking yes I do know this is similar to one of the Winfig malware payloads.
I will also attach the script, but just so you know its meant for windows 98.

Best Regards,

Lee
 
Windows Build/Version
Win 11 22H2

Attachments

  • Constant.bat
    8.9 KB · Views: 1

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    DELL
    CPU
    iNTEL cORE I7
    Keyboard
    logitech
    Mouse
    logitech
    Internet Speed
    ?
    Browser
    Google Chrome
    Antivirus
    Windows Antivirus
So... Your wanting to do harm at your own expense? Or just for fun. Why not create a virus for WIN11
 

My Computers

System One System Two

  • OS
    WiN11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom 775 System
    CPU
    Xeon E5450 3.0GHZ (OC 3.7GHZ)
    Motherboard
    ASUS PQ5-EM
    Memory
    8GB (2GBX4)
    Graphics Card(s)
    AMD R5 430 2GB
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS 24"
    Screen Resolution
    1080p
    Hard Drives
    1TB|750GB USB, 3 SSDs 2 240GB 1 128GB, 750GB HDD
    PSU
    650WATT Rosewill
    Case
    Rosewill with side Window
    Cooling
    5 Fans and a big HSK for cpu
    Keyboard
    Rosewill RGB
    Mouse
    Rosewill RGB
    Internet Speed
    AT&T 150MB DL\UP
    Browser
    FireFox
    Antivirus
    Defender
    Other Info
    I'm lucky to even be here after 6yrs from my car accident
  • Operating System
    WiN10 LTSC
    Computer type
    Laptop
    Manufacturer/Model
    Hp 8460p
    CPU
    i7 2670QM 2.20GHZ
    Motherboard
    Hp 161C
    Memory
    8GB (2X4GB) DUAL Channel
    Graphics card(s)
    Intel HD Graphics 3000
    Sound Card
    Intel high Def (basically onboard)
    Screen Resolution
    1366x768
    Hard Drives
    OS 128GB l Storage (caddy) 320GB
    PSU
    AC (IDK the watts)
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    A USB 3.0 in the Express Card Slot
Excel is your best bet. You can make a batch file in a couple minutes.
Type your first line in the first cell.
Move your mouse cursor to the lower right hand corner of the first cell until you see a + sign.

1666856784944.png

Now just left click and drag down. Excel will update the number automatically.

1666857029329.png

Just copy that into notepad and save it with the .bat extension.
 

My Computers

System One System Two

  • OS
    Win 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel® Core™ i7-12700F
    Motherboard
    ASUS TUF GAMING Z690-PLUS WIFI
    Memory
    G.SKILL Ripjaws S5 Series 64GB (2 x 32GB) DDR5
    Graphics Card(s)
    EVGA GeForce RTX 3050 XC Black Gaming
    Sound Card
    Sound Blaster AE-5 Plus
    Monitor(s) Displays
    ASUS TUF Gaming 27" 2K HDR Gaming
    Screen Resolution
    2560 x 1440
    Hard Drives
    Samsung 990 Pro 1TB NVMe (Win 11)
    SK hynix P41 500GB NVMe (Win 10)
    SK hynix P41 2TB NVMe (x3)
    Crucial P3 Plus 4TB
    PSU
    Corsair RM850x Shift
    Case
    Antec Dark Phantom DP502 FLUX
    Cooling
    Noctua NH-U12A chromax.black + 7 Phantek T-30's
    Keyboard
    Logitech MK 320
    Mouse
    Razer Basilisk V3
    Internet Speed
    350Mbs
    Browser
    Firefox
    Antivirus
    Winows Security
    Other Info
    Windows 10 22H2 19045.4291
    On System One
  • Operating System
    Win 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel Core i7-11700F
    Motherboard
    Asus TUF Gaming Z590 Plus WiFi
    Memory
    64 GB DDR4
    Graphics card(s)
    EVGA RTX 2060 KO Ultra Gaming
    Sound Card
    SoundBlaster X-Fi Titanium
    Monitor(s) Displays
    Samsung F27T350
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 980 Pro 1TB
    Samsung 970 EVO Plus 2TB
    Samsung 870 EVO 500GB SSD
    PSU
    Corsair HX750
    Case
    Cougar MX330-G Window
    Cooling
    Hyper 212 EVO
    Internet Speed
    350Mbps
    Browser
    Firefox
    Antivirus
    Windows Security
Have you considered adding a simple for loop which terminates at 999? I'm not sure if Windows 98 supports it though.

 

My Computer

System One

  • OS
    Windows 11, Windows 10, Linux Fedora Cinnamon
Thanks, Scott! This will make my life easier on coding.

Best Regards,

Lee
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    DELL
    CPU
    iNTEL cORE I7
    Keyboard
    logitech
    Mouse
    logitech
    Internet Speed
    ?
    Browser
    Google Chrome
    Antivirus
    Windows Antivirus
As I answered in the other thread, use powershell. Just change 1..100 to 1..1000

1666882849375.png
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Mouse
    Logitech G9 Laser Mouse
    Keyboard
    Corsiar K65 RGB Lux
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
Powershell isn't available with Windows 98, the user wishes to create numerous folders using a batch file and then run that said batch on a Windows 98 VM.
 

My Computer

System One

  • OS
    Windows 11, Windows 10, Linux Fedora Cinnamon
Powershell isn't available with Windows 98, the user wishes to create numerous folders using a batch file and then run that said batch on a Windows 98 VM.
Oops, my bad. I read that as Windows XP. Geez, Windows 98....that's ancient.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Mouse
    Logitech G9 Laser Mouse
    Keyboard
    Corsiar K65 RGB Lux
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
VBScript was available, and used for actual malware.
Code:
Dim FSO, f

On Error Resume Next
For i = 1 To 999
  'Leading zeros for 3 digit filenames
  folderName = "C:\Windows\Desktop\Constant_" & Right("00" & i,3) & " "
  Set FSO = CreateObject("Scripting.FileSystemObject")
  Set f = fso.CreateFolder(folderName)
Next

> cscript constant.vbs
467 folders will do fine...

Windows 98-2022-10-27-13-45-02.png
 
Last edited:

My Computer

System One

  • OS
    Windows 7

Latest Support Threads

Back
Top Bottom