Thursday, 8 December 2016

Adding environment from external/workspace file into the Jenkins pipeline



// Reading workspace inside pipeline script file using 'readProperties or readFile', 

def props = readProperties file: 'tempFiles/env.properties'

// Adding environment into the Jenkins:
props.each { name, val ->
   println "Exporting to Jenkins environment: " + name + "="  + val
   env."$name" = "$val"
}

Wednesday, 31 August 2016

Steganography - hiding data within JPG file

The data file must be a ZIP file ('data.zip') and image.jpeg is a image file.

# The data file must be a ZIP file ('data.zip') and 'image.jpeg' is a image file.
>> cat image.jpeg data.zip  > test.jpg

To see the content of jpg having image + data file
>> unzip -t test.jpg


To extract content from jpg having image + data file

>> unzip test.jpg

Total Pageviews

Popular Posts